You are here

function calendar_uninstall in Calendar 5

Same name and namespace in other branches
  1. 5.2 calendar.install \calendar_uninstall()
  2. 6.2 calendar.install \calendar_uninstall()
  3. 7 calendar.install \calendar_uninstall()
  4. 7.2 calendar.install \calendar_uninstall()

Implementation of hook_uninstall().

File

./calendar.install, line 38
Install File

Code

function calendar_uninstall() {
  include_once drupal_get_path('module', 'calendar') . '/calendar.module';
  variable_del('calendar_empty_arg');
  foreach (array_keys(calendar_info()) as $view_name) {
    variable_del('calendar_time_format_' . $view_name);
    variable_del('calendar_display_format_' . $view_name);
  }

  // Empty the calendar caches.
  calendar_clear_all(TRUE);
}