function image_default_style_revert in Drupal 7
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 modules/
image/ image.admin.inc - Submit handler to convert an overridden style to its default.
File
- modules/
image/ image.module, line 1138 - 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;
}