function openlayers_uninstall in Openlayers 6.2
Same name and namespace in other branches
- 6 openlayers.install \openlayers_uninstall()
- 7.3 openlayers.install \openlayers_uninstall()
- 7.2 openlayers.install \openlayers_uninstall()
Implementation of hook_uninstall().
File
- ./
openlayers.install, line 22 - This file holds the functions for the installing and enabling of the openlayers module.
Code
function openlayers_uninstall() {
// Remove tables
drupal_uninstall_schema('openlayers');
// Get module variables
$results = db_query("SELECT v.name FROM {variable} AS v WHERE v.name LIKE '%s%%'", 'openlayers_');
// Remove variables
while ($row = db_fetch_array($results)) {
variable_del($row['name']);
}
}