Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / image_style_save.twig
1 /**
2  * Implements hook_image_style_save().
3  */
4 function {{ machine_name }}_image_style_save($style) {
5   // If a module defines an image style and that style is renamed by the user
6   // the module should update any references to that style.
7   if (isset($style['old_name']) && $style['old_name'] == variable_get('mymodule_image_style', '')) {
8     variable_set('mymodule_image_style', $style['name']);
9   }
10 }