function imagecache_profiles_image_style_save in ImageCache Profiles 7
Implements hook_image_style_save().
1 call to imagecache_profiles_image_style_save()
File
- ./
imagecache_profiles.module, line 149
Code
function imagecache_profiles_image_style_save($style) {
// If a style is renamed, update the variables that use it.
if (isset($style['old_name'])) {
// TODO: Make list of vars alterable.
$vars = array(
'user_picture_style_profiles',
'user_picture_style_comments',
'user_picture_style_nodes',
);
foreach ($vars as $var) {
if ($style['old_name'] == variable_get($var)) {
variable_set($var, $style['name']);
}
}
}
}