override_node_options.install in Override Node Options 6
Same filename and directory in other branches
Install, update and uninstall functions for the override_node_options module.
File
override_node_options.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the override_node_options module.
*/
/**
* Implementation of hook_install().
*/
function override_node_options_install() {
db_query('UPDATE {system} SET weight = -1 WHERE name = "%s"', 'override_node_options');
}
/**
* Implementation of hook_uninstall().
*/
function override_node_options_uninstall() {
db_query("DELETE FROM {variable} WHERE name LIKE 'override_node_options_%'");
// TODO we could be leaving permissions in the permission table, but they're tricky to remove
}
/**
* Implementation of hook_update_N().
*/
function override_node_options_update_6100() {
$ret = array();
$ret[] = update_sql("UPDATE {system} SET weight = -1 WHERE name = 'override_node_options'");
return $ret;
}
Functions
Name | Description |
---|---|
override_node_options_install | Implementation of hook_install(). |
override_node_options_uninstall | Implementation of hook_uninstall(). |
override_node_options_update_6100 | Implementation of hook_update_N(). |