function image_example_image_style_delete
Implements hook_image_style_delete().
This hook allows modules to respond to image styles being deleted.
See also
image_example_style_save()
Related topics
File
-
image_example/
image_example.module, line 157
Code
function image_example_image_style_delete($style) {
// See information about $style paramater in documentation for
// image_example_style_save().
//
// Update the modules variable that contains the name of the image style
// being deleted to the name of the replacement style.
if (isset($style['old_name']) && $style['old_name'] == variable_get('image_example_style_name', '')) {
variable_set('image_example_style_name', $style['name']);
}
}