You are here

function openlayers_update_7201 in Openlayers 7.2

Implements hook_update_N().

Rename of presets to maps.

File

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

Code

function openlayers_update_7201() {

  // Change table name
  db_rename_table('openlayers_map_presets', 'openlayers_maps');

  // Set default map variable
  variable_set('openlayers_default_map', variable_get('openlayers_default_preset', 'default'));
  variable_del('openlayers_default_preset');
}