geocoder.install 689 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * @file
  4. * Install, update and uninstall functions for the Geocoder module.
  5. */
  6. /**
  7. * Implements hook_schema().
  8. */
  9. function geocoder_schema() {
  10. $schema['cache_geocoder'] = drupal_get_schema_unprocessed('system', 'cache');
  11. $schema['cache_geocoder']['description'] = 'Cache table for the geocoder module to store geocoded locations.';
  12. return $schema;
  13. }
  14. /**
  15. * Implements hook_uninstall().
  16. */
  17. function geocoder_uninstall() {
  18. variable_del('geocoder_settings');
  19. variable_del('geocoder_cache_empty_results');
  20. variable_del('geocoder_cache_ttl');
  21. }
  22. /**
  23. * Create geocoder's caching table.
  24. */
  25. function geocoder_update_7101() {
  26. drupal_install_schema('geocoder');
  27. }