You are here

function gmap_location_uninstall in GMap Module 6

Same name and namespace in other branches
  1. 5 gmap_location.install \gmap_location_uninstall()
  2. 6.2 gmap_location.install \gmap_location_uninstall()
  3. 7.2 gmap_location.install \gmap_location_uninstall()
  4. 7 gmap_location.install \gmap_location_uninstall()

Implementation of hook_uninstall().

File

./gmap_location.install, line 18
gmap_location install routines.

Code

function gmap_location_uninstall() {
  variable_del('gmap_user_map');
  variable_del('gmap_node_map');
  variable_del('gmap_node_markers');
  variable_del('gmap_role_markers');
  variable_del('gmap_location_block_macro');
  variable_del('gmap_location_author_block_macro');
  variable_del('gmap_location_author_block_types');
  variable_del('gmap_location_author_block_marker');
  $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'gmap_location_block_macro_%%'");
  while ($row = db_fetch_object($result)) {
    variable_del($row->name);
  }
}