date_api_uninstall

  1. drupal
    1. 6 date_api.install function
    2. 7 date_api.install function
Drupal 7 date_api_uninstall()

Implements hook_uninstall().

File

sites/all/modules/date/date_api/date_api.install, line 87
Install, update and uninstall functions for the date_api module.

Code

function date_api_uninstall() {
  cache_clear_all('date_timezone_identifiers_list', 'cache');
  $variables = array(
    'date_api_version',
    'date_min_year',
    'date_max_year',
    'date_php_min_year',
    'date_db_tz_support',
    'date_api_use_iso8601',
  );
  foreach ($variables as $variable) {
    variable_del($variable);
  }

  if (db_table_exists('views_display')) {
    $displays = array(
      'date_nav',
    );
    db_query("DELETE FROM {views_display} WHERE display_plugin IN ('" . implode("','", $displays) . "')");
    db_query("DELETE FROM {cache_views}");
  }
}