You are here

function calendar_ical_uninstall in Calendar 6.2

Same name and namespace in other branches
  1. 7 calendar_ical/calendar_ical.install \calendar_ical_uninstall()
  2. 7.2 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 13

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}");
}