function track_field_changes_handler_filter_field_info::get_value_options in Track Field Changes 7
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/
track_field_changes_handler_filter_field_info.inc, line 15 - Contains the flagged content filter handler.
Class
- track_field_changes_handler_filter_field_info
- Handler to filter for content that has not been flagged.
Code
function get_value_options() {
$node_types = variable_get('track_field_changes_node_types', array());
foreach ($node_types as $key => $node_type) {
if ($node_type) {
$selected_fields = array_merge((array) isset($selected_fields), (array) track_field_changes_get_selected_field($node_type));
}
}
$this->value_options = $selected_fields;
}