function calendar_ical_uninstall in Calendar 7.2
Same name and namespace in other branches
- 6.2 calendar_ical/calendar_ical.install \calendar_ical_uninstall()
- 7 calendar_ical/calendar_ical.install \calendar_ical_uninstall()
Make sure handlers for disabled Calendar iCal module don't get saved in the view.
File
- calendar_ical/
calendar_ical.install, line 24 - Install, update and uninstall functions for the calendar_ical module.
Code
function calendar_ical_uninstall() {
$displays = array(
'ical',
);
db_query("DELETE FROM {views_display} WHERE display_plugin IN ('" . implode("','", $displays) . "')");
db_query("DELETE FROM {cache_views}");
}