function _range_update_instance_7006 in Range 7
Instance update callback for 7006 update.
Parameters
array $instance: Field instance.
Return value
bool Whether given instance was updated or not.
1 string reference to '_range_update_instance_7006'
- range_update_7006 in ./
range.install - Updates range field instances' settings.
File
- ./
range.install, line 238 - Install, update and uninstall functions for the range field module.
Code
function _range_update_instance_7006(array &$instance) {
if ($instance['widget']['type'] === 'range') {
$instance['settings']['combined'] = array(
'prefix' => '',
'suffix' => '',
);
foreach ($instance['display'] as $view_mode => $display) {
$instance['display'][$view_mode]['settings']['combined_prefix_suffix'] = FALSE;
}
return TRUE;
}
}