override_node_options.install in Override Node Options 7
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_update_N().
*/
function override_node_options_update_7113() {
db_update('system')
->fields(array(
'weight' => -1,
))
->condition('name', 'override_node_options', '=')
->execute();
}
/**
* Update the module weight.
*/
function override_node_options_update_7114() {
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_update_7113 | Implements hook_update_N(). |
override_node_options_update_7114 | Update the module weight. |