function rules_install in Rules 6
Same name and namespace in other branches
- 7.2 rules.install \rules_install()
Implementation of hook_install().
File
- rules/
rules.install, line 11 - Rules - Installation file.
Code
function rules_install() {
drupal_load('module', 'rules');
drupal_install_schema('rules');
// Set the modules' weight to 20, see
// http://drupal.org/node/445084#comment-1533280 for the reasoning.
db_query("UPDATE {system} SET weight = 20 WHERE name = 'rules'");
}