function calendar_uninstall in Calendar 5
Same name and namespace in other branches
- 5.2 calendar.install \calendar_uninstall()
- 6.2 calendar.install \calendar_uninstall()
- 7 calendar.install \calendar_uninstall()
- 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);
}