function uc_extra_fields_pane_handler_filter_selection::get_value_options in Extra Fields Checkout Pane 7
Same name and namespace in other branches
- 6.2 views/uc_extra_fields_pane_handler_filter_selection.inc \uc_extra_fields_pane_handler_filter_selection::get_value_options()
Child classes should be used to override this function and set the 'value options', unless 'options callback' is defined as a valid function or static public method to generate these values.
This can use a guard to be used to reduce database hits as much as possible.
Return value
Return the stored values in $this->value_options if someone expects it.
Overrides views_handler_filter_in_operator::get_value_options
File
- views/
uc_extra_fields_pane_handler_filter_selection.inc, line 11 - Views filter handler for Extra Fields Pane selection field types.
Class
- uc_extra_fields_pane_handler_filter_selection
- Filter by a selection widget in case of a select field.
Code
function get_value_options() {
if (isset($this->value_options)) {
return;
}
$this->value_options = array();
$field = uc_extra_fields_pane_field_load($this->definition['field_id']);
$this->value_options = $field
->generate_value();
}