You are here

function views_handler_filter_search_log_result::get_value_options in Search Log 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/views_handler_filter_search_log_result.inc, line 9
Search log Views filter by result.

Class

views_handler_filter_search_log_result
@file Search log Views filter by result.

Code

function get_value_options() {
  if (!isset($this->value_options)) {
    $this->value_title = t('Result');
    $result_options = array(
      SEARCH_LOG_RESULT_SUCCESS => t('Success'),
      SEARCH_LOG_RESULT_UNKNOWN => t('Unknown'),
      SEARCH_LOG_RESULT_FAILED => t('Failed'),
    );
    $this->value_options = $result_options;
  }
}