You are here

function notifications_content_uninstall in Notifications 7

Same name and namespace in other branches
  1. 6.4 notifications_content/notifications_content.install \notifications_content_uninstall()
  2. 6 notifications_content/notifications_content.install \notifications_content_uninstall()
  3. 6.2 notifications_content/notifications_content.install \notifications_content_uninstall()
  4. 6.3 notifications_content/notifications_content.install \notifications_content_uninstall()

Implementation of hook_uninstall().

File

notifications_content/notifications_content.install, line 46

Code

function notifications_content_uninstall() {

  // Delete global variables
  variable_del('notifications_content_types');
  variable_del('notifications_content_per_type');

  // Delete per content type variables
  foreach (array_keys(node_type_get_types()) as $type) {
    variable_del('notifications_content_type_' . $type);
  }
}