function openlayers_cck_uninstall in Openlayers 6
Same name and namespace in other branches
- 6.2 modules/openlayers_cck/openlayers_cck.install \openlayers_cck_uninstall()
Implementation of hook_uninstall().
File
- modules/
openlayers_cck/ openlayers_cck.install, line 48 - This file holds the functions for the installing and enabling of the openlayers_cck module.
Code
function openlayers_cck_uninstall() {
// Let content/cck know about our actions
drupal_load('module', 'content');
content_notify('uninstall', 'openlayers_cck');
// Get module variables
$results = db_query("SELECT v.name FROM {variable} AS v WHERE v.name LIKE '%s%%'", 'openlayers_cck_');
// Remove variables
while ($row = db_fetch_array($results)) {
variable_del($row['name']);
}
}