You are here

function manualcrop_update_7106 in Manual Crop 7

Add the style_priority setting to all auto reuse image effects.

File

./manualcrop.install, line 326
Install, update and uninstall functions for the Manual Crop module.

Code

function manualcrop_update_7106(&$sandbox) {
  require_once 'manualcrop.helpers.inc';
  foreach (manualcrop_styles_with_crop(TRUE) as $info) {
    $effect = $info['effect'];
    if (_manualcrop_is_own_effect($effect, FALSE) && $effect['name'] == 'manualcrop_auto_reuse') {
      $effect['data'] += array(
        'style_priority' => array(),
      );
      image_effect_save($effect);
    }
  }
}