function openlayers_update_6200 in Openlayers 6.2
Implementation of hook_update_N().
File
- ./
openlayers.install, line 182 - This file holds the functions for the installing and enabling of the openlayers module.
Code
function openlayers_update_6200(&$sandbox) {
$ret = array();
// Because we already have two different versions of this
// module that are not meant to be compatible, we have to
// check what version we are coming from and do the correct
// update. Unfortunately Drupal will not tell us what schema
// we are coming from, so we have set a variable in the 1.x
// modules.
$openlayers_version = variable_get('openlayers_schema_version', NULL);
if (!empty($openlayers_version) && $openlayers_version >= 6100 && $openlayers_version < 6200) {
// 1.x to 2.x upgrade.
$ret = _openlayers_upgrade_1xto2x();
}
return $ret;
}