You are here

function sarnia_index_get_field_options in Sarnia 7

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

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

See also

sarnia_index_get_options()

3 calls to sarnia_index_get_field_options()
SarniaViewsHandlerArgumentId::options_form in handlers/handler_argument_id.inc
Add a field to the options form to select a solr property to use as the name of the argument.
SarniaViewsHandlerField::options_form in handlers/handler_field.inc
Build the handler configuration form.
sarnia_field_formatter_settings_form in ./sarnia.field_formatter.inc
Implements hook_field_formatter_settings_form().

File

./sarnia.module, line 781

Code

function sarnia_index_get_field_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, 'getDisplayFields');
  }
  return $options[$index_machine_name];
}