function gmap_update_5003 in GMap Module 7
Same name and namespace in other branches
- 5 gmap.install \gmap_update_5003()
- 6.2 gmap.install \gmap_update_5003()
- 6 gmap.install \gmap_update_5003()
- 7.2 gmap.install \gmap_update_5003()
Mini-update -- slight tweak to marker manager settings format.
File
- ./
gmap.install, line 91 - GMap install/uninstall routines.
Code
function gmap_update_5003() {
$ret = array();
$val = variable_get('gmap_markermanager', array());
if (isset($val['clusterer']) && isset($val['clusterer']['clusterer_file']) && !empty($val['clusterer']['clusterer_file'])) {
$val['clusterer']['filename'] = $val['clusterer']['clusterer_file'];
unset($val['clusterer']['clusterer_file']);
variable_set('gmap_markermanager', $val);
}
drupal_set_message(t('Border Padding on marker managers is now defaulting to the recommended 256 pixels, rather than 0 pixels. You may wish to change your marker manager settings on the <a href="@url">GMap settings page</a> to match.', array(
'@url' => url('admin/settings/gmap'),
)));
return $ret;
}