function location_node_uninstall in Location 6.3
Same name and namespace in other branches
- 5.3 location_node.install \location_node_uninstall()
- 7.3 location_node.install \location_node_uninstall()
- 7.4 location_node.install \location_node_uninstall()
Implentation of hook_uninstall().
File
- ./
location_node.install, line 11 - Installation / uninstallation routines for location_node.module.
Code
function location_node_uninstall() {
// Delete node settings.
$result = db_query("SELECT name FROM {variable} WHERE name LIKE 'location_settings_node_%'");
while ($row = db_fetch_object($result)) {
variable_del($row->name);
}
// Delete compatibility variables.
$result = db_query("SELECT name FROM {variable} WHERE name LIKE 'location_maxnum_%'");
while ($row = db_fetch_object($result)) {
variable_del($row->name);
}
$result = db_query("SELECT name FROM {variable} WHERE name LIKE 'location_defaultnum_%'");
while ($row = db_fetch_object($result)) {
variable_del($row->name);
}
}