function _range_views_data_argument_handler in Range 7
Provides views argument handler data.
Parameters
array $data: Views data array.
array $field: Field definition.
1 call to _range_views_data_argument_handler()
- range_field_views_data in views/
range.views.inc - Implements hook_field_views_data().
File
- views/
range.views.inc, line 148 - Implementation of Views API.
Code
function _range_views_data_argument_handler(array &$data, array $field) {
list($label, $current_table, $revision_table, $add_fields) = _range_views_data_base_information($field);
$base = array(
'help' => t('Range contains (or does not contain) a value'),
'handler' => 'range_handler_argument_numeric_range',
'field_name' => $field['field_name'],
'additional fields' => $add_fields,
'empty field name' => t('- No value -'),
'numeric' => TRUE,
);
$data[$current_table][$field['field_name']]['argument'] = array(
'title' => t('@label range argument', array(
'@label' => $label,
)),
'table' => $current_table,
) + $base;
$data[$revision_table][$field['field_name'] . '-' . 'revision_id']['argument'] = array(
'title' => t('@label range argument (historical data)', array(
'@label' => $label,
)),
'table' => $revision_table,
) + $base;
}