You are here

function location_node_uninstall in Location 7.3

Same name and namespace in other branches
  1. 5.3 location_node.install \location_node_uninstall()
  2. 6.3 location_node.install \location_node_uninstall()
  3. 7.4 location_node.install \location_node_uninstall()

Implentation of hook_uninstall().

File

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

Code

function location_node_uninstall() {

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

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