function notifications_ui_uninstall in Notifications 6.2
Same name and namespace in other branches
- 6.4 notifications_ui/notifications_ui.install \notifications_ui_uninstall()
- 6 notifications_ui/notifications_ui.install \notifications_ui_uninstall()
- 6.3 notifications_ui/notifications_ui.install \notifications_ui_uninstall()
- 7 notifications_ui/notifications_ui.install \notifications_ui_uninstall()
Implementation of hook_uninstall()
File
- notifications_ui/
notifications_ui.install, line 19
Code
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);
}
}