You are here

protected function SearchApiViewsHandlerFilterFulltext::getFulltextFields in Search API 7

Helper method to get an option list of all available fulltext fields.

2 calls to SearchApiViewsHandlerFilterFulltext::getFulltextFields()
SearchApiViewsHandlerFilterFulltext::options_form in contrib/search_api_views/includes/handler_filter_fulltext.inc
Extend the options form a bit.
SearchApiViewsHandlerFilterFulltext::query in contrib/search_api_views/includes/handler_filter_fulltext.inc
Add this filter to the query.

File

contrib/search_api_views/includes/handler_filter_fulltext.inc, line 260
Contains SearchApiViewsHandlerFilterFulltext.

Class

SearchApiViewsHandlerFilterFulltext
Views filter handler class for handling fulltext fields.

Code

protected function getFulltextFields() {
  $fields = array();
  $index = search_api_index_load(substr($this->table, 17));
  if (!empty($index->options['fields'])) {
    $f = $index
      ->getFields();
    foreach ($index
      ->getFulltextFields() as $name) {
      $fields[$name] = $f[$name]['name'];
    }
  }
  return $fields;
}