You are here

function openlayers_uninstall in Openlayers 6

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

Implementation of hook_uninstall().

File

./openlayers.install, line 34
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']);
  }
}