You are here

function _range_update_instance_7003 in Range 7

Instance update callback for 7003 update.

Parameters

array $instance: Field instance.

Return value

bool Whether given instance was updated or not.

1 string reference to '_range_update_instance_7003'
range_update_7003 in ./range.install
Updates range field instances' settings.

File

./range.install, line 145
Install, update and uninstall functions for the range field module.

Code

function _range_update_instance_7003(array &$instance) {
  if ($instance['widget']['type'] === 'range') {
    $instance['settings']['field'] = array(
      'prefix' => '',
      'suffix' => '',
    );
    return TRUE;
  }
}