openlayers.install

<?php
// $Id: openlayers.install,v 1.7 2009/05/26 04:02:21 binarybill Exp $

/**
 * @file
 * This file holds the functions for the installing
 * and enabling of the openlayers module.
 *
 * @ingroup openlayers
 */

/**
 * Implementation of hook_uninstall().
 */
function openlayers_uninstall() {
  // @@TODO: This may be a bad idea, as it will destroy all openlayers modules variables. ??
  
  // 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']);
  }
}