notifications_ui.install in Notifications 6
Same filename and directory in other branches
File
notifications_ui/notifications_ui.installView source
<?php
/**
* Implementation of hook_uninstall()
*/
function notifications_ui_uninstall() {
// Some global variables
variable_del('notifications_ui_per_type');
variable_del('notifications_ui_user');
variable_del('notifications_ui_node');
variable_del('notifications_ui_account_options');
// Just delete variables for subscription types and node types
variable_del('notifications_ui_types');
foreach (array_keys(node_get_types()) as $type) {
variable_del('notifications_node_ui_' . $type);
}
}
/**
* Update UI variables
*/
function notifications_ui_update_6000() {
// All options will be messed up so we better do manual review
variable_del('notifications_link_teaser');
drupal_set_message('Please, check all your Notifications UI settings and note the new options.');
return array();
}
Functions
Name | Description |
---|---|
notifications_ui_uninstall | Implementation of hook_uninstall() |
notifications_ui_update_6000 | Update UI variables |