function _range_field_formatter_view_separate_values in Range 7
Helper function. Returns field markup for separate values option.
Parameters
string $from_value: Field FROM value.
string $to_value: Field TO value.
array $settings: Display settings array.
array $instance_settings: Field instance settings array.
Return value
string Field markup.
2 calls to _range_field_formatter_view_separate_values()
- RangeUnitTestCase::testRangeFormatterViewSeparateValues in tests/
range.unit.test - Test separate values formatter.
- range_field_formatter_view in ./
range.module - Implements hook_field_formatter_view().
File
- ./
range.module, line 577 - Defines range field types.
Code
function _range_field_formatter_view_separate_values($from_value, $to_value, array $settings, array $instance_settings) {
$from = _range_field_formatter_view_prefix_suffix($from_value, $settings['from_prefix_suffix'], $instance_settings['from']);
$to = _range_field_formatter_view_prefix_suffix($to_value, $settings['to_prefix_suffix'], $instance_settings['to']);
return $from . field_filter_xss($settings['range_separator']) . $to;
}