function locationmap_update_106 in Location Map 7.2
Same name and namespace in other branches
- 8.2 locationmap.install \locationmap_update_106()
Upgrade text fields to enable enable rich text/full HTML and WYSIWYG editors.
File
- ./
locationmap.install, line 106 - Install, update and uninstall functions for the locationmap module.
Code
function locationmap_update_106() {
$locationmap_info = variable_get('locationmap_info');
if (is_array($locationmap_info)) {
// If a user has already had their variables upgraded by running the 7.x-2.x-dev branch
// do not run the update.
return t('No upgrade to variables required as this had already occurred while running the 7.x-2.x-dev branch.');
}
else {
variable_set('locationmap_info', array(
'value' => variable_get('locationmap_info'),
'format' => filter_default_format(),
));
variable_set('locationmap_body', array(
'value' => variable_get('locationmap_body'),
'format' => filter_default_format(),
));
variable_set('locationmap_footer', array(
'value' => variable_get('locationmap_footer'),
'format' => filter_default_format(),
));
return t('Location Map text fields updated to support rich text/full HTML and WYSIWYG editors.');
}
}