You are here

function notifications_content_uninstall in Notifications 6.3

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. 7 notifications_content/notifications_content.install \notifications_content_uninstall()

Implementation of hook_uninstall().

File

notifications_content/notifications_content.install, line 17

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_get_types()) as $type) {
    variable_del('notifications_content_type_' . $type);
  }
  drupal_set_message(t('Content notifications uninstallation script complete.'));
}