You are here

function openlayers_uninstall in Openlayers 7.3

Same name and namespace in other branches
  1. 6.2 openlayers.install \openlayers_uninstall()
  2. 6 openlayers.install \openlayers_uninstall()
  3. 7.2 openlayers.install \openlayers_uninstall()

Implements hook_uninstall().

File

./openlayers.install, line 10
Openlayers module - installation procedure.

Code

function openlayers_uninstall() {

  // Get module variables.
  global $conf;
  foreach (array_keys($conf) as $key) {

    // Find variables that have the module prefix.
    if (strpos($key, 'openlayers_') === 0) {
      variable_del($key);
    }
  }
}