function image_default_style_revert
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.
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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!image!image.module/function/image_default_style_revert/7.x