function _range_update_instance_7002 in Range 7
Instance update callback for 7002 update.
Parameters
array $instance: Field instance.
Return value
bool Whether given instance was updated or not.
1 string reference to '_range_update_instance_7002'
- range_update_7002 in ./
range.install - Updates range field instances' settings.
File
- ./
range.install, line 121 - Install, update and uninstall functions for the range field module.
Code
function _range_update_instance_7002(array &$instance) {
if ($instance['widget']['type'] === 'range') {
$instance['settings']['from']['label'] = t('From');
$instance['settings']['to']['label'] = t('to');
return TRUE;
}
}