| 7 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.
1 call to image_default_style_revert()
File
- modules/
image/ image.module, line 1030 - 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;
}
Login or register to post comments