function image_default_style_revert
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 1217
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.