geocoder.install in Geocoder 7
Same filename and directory in other branches
Install, update and uninstall functions for the Geocoder module.
File
geocoder.installView 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
Name | Description |
---|---|
geocoder_schema | Implements hook_schema(). |
geocoder_uninstall | Implements hook_uninstall(). |
geocoder_update_7101 | Create geocoder's caching table. |