You are here

function calendar_uninstall in Calendar 5.2

Same name and namespace in other branches
  1. 5 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 84
Install File

Code

function calendar_uninstall() {
  $ret = array();
  $ret[] = db_query("DELETE FROM {variable} WHERE SUBSTR(name, 1, 9) = 'calendar_'");
  cache_clear_all('variables', 'cache');
  cache_clear_all('calendar_views', 'cache_views');
  cache_clear_all('calendar_fields', 'cache_views');
  return $ret;
}