You are here

function views_rules_update_7000 in Views Rules 7

Updates collect action settings.

File

./views_rules.install, line 10
Module installation file.

Code

function views_rules_update_7000(&$sandbox) {
  $rules = rules_config_load_multiple(FALSE);

  /** @var $rule RulesPlugin */
  foreach ($rules as $rule) {
    if ($rule instanceof RulesContainerPlugin && views_rules_update_clean_collect_action_variable_names($rule)) {
      $rule
        ->save();
    }
  }
}