You are here

function rules_admin_install in Rules 6

Implementation of hook_install().

We just add some example rules and rule sets here. They aren't added as default rules, so users can delete them.

File

rules_admin/rules_admin.install, line 14
Rules Admin UI - Installation file.

Code

function rules_admin_install() {

  // Make sure the rules module is loaded. Important when both modules are installed at
  // the same time.
  drupal_load('module', 'rules');
  _rules_admin_install_example_rules();
  _rules_admin_install_example_rule_sets();
  rules_clear_cache();
}