function location_addanother_node_type_update in Location 7.3
Implements hook_node_type_update().
Synchronize our settings.
File
- contrib/
location_addanother/ location_addanother.module, line 140 - "Add location from node view" functionality. Split from main location.module in version 3.
Code
function location_addanother_node_type_update($info) {
if (!empty($info->old_type) && $info->old_type != $info->type) {
$setting = variable_get('location_addanother_' . $info->old_type, 0);
variable_del('location_addanother_' . $info->old_type);
variable_set('location_addanother_' . $info->type, $setting);
}
}