override_node_options.install in Override Node Options 8
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.
*/
/**
* Implements hook_install().
*/
function override_node_options_install() {
db_update('system')
->fields(array(
'weight' => -1,
))
->condition('name', 'override_node_options', '=')
->execute();
}
/**
* Implements hook_uninstall().
*/
function override_node_options_uninstall() {
db_query("DELETE FROM {variable} WHERE name LIKE 'override_node_options_%'");
}
/**
* Implements hook_update_N().
*/
function override_node_options_update_7113() {
db_update('system')
->fields(array(
'weight' => -1,
))
->condition('name', 'override_node_options', '=')
->execute();
}
Functions
Name | Description |
---|---|
override_node_options_install | Implements hook_install(). |
override_node_options_uninstall | Implements hook_uninstall(). |
override_node_options_update_7113 | Implements hook_update_N(). |