You are here

function date_api_uninstall in Date 6

Same name and namespace in other branches
  1. 8 date_api/date_api.install \date_api_uninstall()
  2. 5.2 date_api.install \date_api_uninstall()
  3. 6.2 date_api.install \date_api_uninstall()
  4. 7.3 date_api/date_api.install \date_api_uninstall()
  5. 7 date_api/date_api.install \date_api_uninstall()
  6. 7.2 date_api/date_api.install \date_api_uninstall()

Implementation of hook_uninstall().

File

./date_api.install, line 44

Code

function date_api_uninstall() {
  $ret = array();
  $ret[] = db_query("ALTER TABLE {users} DROP timezone_name");
  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',
  );
  foreach ($variables as $variable) {
    variable_del($variable);
  }
  return $ret;
}