nodewords_ui.install in Nodewords: D6 Meta Tags 6.2
Same filename and directory in other branches
Install, update and uninstall functions for the User interface for Nodewords module.
File
nodewords_ui/nodewords_ui.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the User interface for Nodewords module.
*/
/**
* Implements hook_install().
*/
function nodewords_ui_install() {
$value = variable_get('nodewords_edit', NULL);
if (isset($value)) {
variable_set('nodewords_ui_edit', $value);
}
db_query("UPDATE {system} SET weight = 12 WHERE name = 'nodewords_ui' AND type = 'module'");
}
/**
* Implements hook_update_N().
*/
function nodewords_ui_update_6102() {
$ret = array();
variable_del('nodewords_ui_installed');
variable_del('nodewords_edit');
$ret[] = array(
'success' => TRUE,
'query' => 'Removed obsolete persistent variables',
);
return $ret;
}
/**
* Implements hook_update_N().
*/
function nodewords_ui_update_6103() {
$ret = array();
$ret[] = update_sql("UPDATE {system} SET weight = 12 WHERE name = 'nodewords_ui' AND type = 'module'");
return $ret;
}
Functions
Name | Description |
---|---|
nodewords_ui_install | Implements hook_install(). |
nodewords_ui_update_6102 | Implements hook_update_N(). |
nodewords_ui_update_6103 | Implements hook_update_N(). |