function openlayers_test_uninstall in Openlayers 6.2
Same name and namespace in other branches
- 7.2 tests/openlayers_test.install \openlayers_test_uninstall()
Implementation of hook_uninstall().
File
- tests/
openlayers_test.install, line 61 - This file holds the functions for the installing and enabling of the openlayers_test module.
Code
function openlayers_test_uninstall() {
// Remove any added data
node_type_delete('openlayers_test_type');
// Get module variables
$results = db_query("SELECT v.name FROM {variable} AS v WHERE v.name LIKE '%s%%'", 'openlayers_test_');
// Remove variables
while ($row = db_fetch_array($results)) {
variable_del($row['name']);
}
}