You are here

geocoder.install in Geocoder 7

Same filename and directory in other branches
  1. 8.3 geocoder.install
  2. 8.2 geocoder.install
  3. 7.2 geocoder.install

Install, update and uninstall functions for the Geocoder module.

File

geocoder.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the Geocoder module.
 */

/**
 * Implements hook_schema().
 */
function geocoder_schema() {
  $schema['cache_geocoder'] = drupal_get_schema_unprocessed('system', 'cache');
  $schema['cache_geocoder']['description'] = 'Cache table for the geocoder module to store geocoded locations.';
  return $schema;
}

/**
 * Implements hook_uninstall().
 */
function geocoder_uninstall() {
  variable_del('geocoder_settings');
  variable_del('geocoder_cache_empty_results');
  variable_del('geocoder_cache_ttl');
}

/**
 * Create geocoder's caching table.
 */
function geocoder_update_7101() {
  drupal_install_schema('geocoder');
}

Functions

Namesort descending Description
geocoder_schema Implements hook_schema().
geocoder_uninstall Implements hook_uninstall().
geocoder_update_7101 Create geocoder's caching table.