You are here

function notifications_ui_uninstall in Notifications 6

Same name and namespace in other branches
  1. 6.4 notifications_ui/notifications_ui.install \notifications_ui_uninstall()
  2. 6.2 notifications_ui/notifications_ui.install \notifications_ui_uninstall()
  3. 6.3 notifications_ui/notifications_ui.install \notifications_ui_uninstall()
  4. 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');
  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);
  }
}