You are here

function sarnia_index_get_filter_options in Sarnia 7

Same name in this branch
  1. 7 sarnia.api.php \sarnia_index_get_filter_options()
  2. 7 sarnia.module \sarnia_index_get_filter_options()

Get and cache a list of filterable fields for a particular Search API index.

See also

sarnia_index_get_options()

2 calls to sarnia_index_get_filter_options()
SarniaViewsHandlerArgument::options_form in handlers/handler_argument.inc
Build the options form.
SarniaViewsHandlerFilter::operator_form in handlers/handler_filter.inc
Options form subform for setting the operator.

File

./sarnia.module, line 794

Code

function sarnia_index_get_filter_options($index_machine_name, $reset = FALSE) {
  $options =& drupal_static(__FUNCTION__, array());
  if (!isset($options[$index_machine_name]) || $reset) {
    $options[$index_machine_name] = sarnia_index_get_options($index_machine_name, 'getFilterFields');
  }
  return $options[$index_machine_name];
}