You are here

function location_taxonomy_uninstall in Location 7.5

Same name and namespace in other branches
  1. 6.3 contrib/location_taxonomy/location_taxonomy.install \location_taxonomy_uninstall()
  2. 7.3 contrib/location_taxonomy/location_taxonomy.install \location_taxonomy_uninstall()
  3. 7.4 contrib/location_taxonomy/location_taxonomy.install \location_taxonomy_uninstall()

Implements hook_uninstall().

File

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

Code

function location_taxonomy_uninstall() {

  // @@@ Delete data?
  // Delete vocabulary location settings.
  $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'location_taxonomy_%'")
    ->fetchCol();
  foreach ($result as $var) {
    variable_del($var);
  }
}