You are here

function openlayers_uninstall in Openlayers 7.2

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

Implements hook_uninstall().

File

./openlayers.install, line 14
This file holds the functions for the installing and enabling of the openlayers module.

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);
    }
  }
}