You are here

function mvf_views_handler_options_list in Measured Value Field 7

Options callback for Views handler views_handler_filter_in_operator.

Allow to choose referenced units from a given list of options, rather than entering entity_id in the filter - which is the default implementation for it.

Parameters

string $field_name: Field name for which options should be generated

1 string reference to 'mvf_views_handler_options_list'
mvf_field_views_data in views/mvf.views.inc
Implements hook_field_views_data().

File

./mvf.module, line 1920
Define a field type of measured value.

Code

function mvf_views_handler_options_list($field_name) {
  $field = field_info_field($field_name);
  $mocked_field = mvf_field_mockup($field, 'unit');
  return module_invoke($mocked_field['module'], 'options_list', $mocked_field);
}