1.20.x image.module image_default_style_revert($style)

Revert the changes made by users to a default image style.

Parameters

style: An image style array.

Return value

Boolean TRUE if the operation succeeded.:

File

modules/image/image.module, line 1108
Exposes global functionality for creating image styles.

Code

function image_default_style_revert($style) {
  image_style_flush($style);
  config('image.style.' . $style['name'])->delete();
  config_install_default_config($style['module'], 'image.style.' . $style['name']);
  return TRUE;
}