You are here

function rules_update_6002 in Rules 6

Initialize the new rules counter variable

File

rules/rules.install, line 112
Rules - Installation file.

Code

function rules_update_6002() {
  drupal_load('module', 'rules');
  $result = db_query("SELECT COUNT(name) FROM {rules_rules} WHERE name LIKE 'rules_%%'");
  variable_set('rules_counter', db_result($result) + 10);
  return array();
}