You are here

function location_uninstall in Location 7.5

Same name and namespace in other branches
  1. 5.3 location.install \location_uninstall()
  2. 6.3 location.install \location_uninstall()
  3. 7.3 location.install \location_uninstall()
  4. 7.4 location.install \location_uninstall()

Implentation of hook_uninstall().

File

./location.install, line 11
Install, update and uninstall functions for the location module.

Code

function location_uninstall() {

  // Delete variables.
  variable_del('location_default_country');
  variable_del('location_display_location');
  variable_del('location_usegmap');
  variable_del('location_locpick_macro');

  // Delete geocoder settings.
  $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'location_geocode_%'")
    ->fetchCol();
  foreach ($result as $var) {
    variable_del($var);
  }
}