You are here

function scheduler_uninstall in Scheduler 7

Same name and namespace in other branches
  1. 8 scheduler.install \scheduler_uninstall()
  2. 5 scheduler.install \scheduler_uninstall()
  3. 6 scheduler.install \scheduler_uninstall()

Implements hook_uninstall().

File

./scheduler.install, line 49
Installation file for Scheduler module.

Code

function scheduler_uninstall() {

  // Keep variables in alphabetic order for easier maintenance and patching.
  $variables = array(
    'scheduler_allow_date_only',
    'scheduler_cache_clear_all',
    'scheduler_date_format',
    'scheduler_date_only_format',
    'scheduler_default_time',
    'scheduler_extra_info',
    'scheduler_date_popup_minute_increment',
    'scheduler_field_type',
    'scheduler_lightweight_access_key',
    'scheduler_lightweight_log',
    'scheduler_time_only_format',
  );
  $types = node_type_get_types();
  foreach ($types as $type) {
    $type_name = $type->type;
    $variables[] = "scheduler_expand_fieldset_" . $type_name;
    $variables[] = "scheduler_publish_enable_" . $type_name;
    $variables[] = "scheduler_publish_touch_" . $type_name;
    $variables[] = "scheduler_publish_required_" . $type_name;
    $variables[] = "scheduler_publish_revision_" . $type_name;
    $variables[] = "scheduler_publish_past_date_" . $type_name;
    $variables[] = "scheduler_unpublish_enable_" . $type_name;
    $variables[] = "scheduler_unpublish_required_" . $type_name;
    $variables[] = "scheduler_unpublish_revision_" . $type_name;
    $variables[] = "scheduler_use_vertical_tabs_" . $type_name;
  }
  foreach ($variables as $variable) {
    variable_del($variable);
  }
}