function notifications_ui_uninstall in Notifications 6.4
Same name and namespace in other branches
- 6 notifications_ui/notifications_ui.install \notifications_ui_uninstall()
- 6.2 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 6
Code
function notifications_ui_uninstall() {
// Some global variables
variable_del('notifications_ui_per_type');
variable_del('notifications_ui_user_options');
variable_del('notifications_ui_node_options');
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);
}
}