function image_default_style_revert

7.x image.module image_default_style_revert($style)

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

Parameters

style: An image style array.

Return value

Boolean TRUE if the operation succeeded.

1 call to image_default_style_revert()
image_style_revert_form_submit in drupal-7.x/modules/image/image.admin.inc
Submit handler to convert an overridden style to its default.

File

drupal-7.x/modules/image/image.module, line 1116
Exposes global functionality for creating image styles.

Code

function image_default_style_revert($style) {
  image_style_flush($style);

  db_delete('image_effects')->condition('isid', $style['isid'])->execute();
  db_delete('image_styles')->condition('isid', $style['isid'])->execute();

  return TRUE;
}