rules_forms.install in Rules 6
Rules Forms - Installation file.
File
rules_forms/rules_forms.installView source
<?php
/**
* @file
* Rules Forms - Installation file.
*/
/**
* Implementation of hook_install().
*/
function rules_forms_install() {
// Set the modules' weight to 20, because we want it to be the last one using
// hook_form_alter().
db_query("UPDATE {system} SET weight = 20 WHERE name = 'rules_forms'");
}
/**
* Update the module's weight to 20.
*/
function rules_forms_update_6001() {
$ret = array();
$ret[] = update_sql("UPDATE {system} SET weight = 20 WHERE name = 'rules_forms'");
return $ret;
}
Functions
Name | Description |
---|---|
rules_forms_install | Implementation of hook_install(). |
rules_forms_update_6001 | Update the module's weight to 20. |