You are here

public function ContentTaxonomyAutocompleteModeratedTermsSearchAPIProcessor::configurationForm in Content Taxonomy 7

Confiuration callback.

Only allow users to select taxonomy fields.

Overrides SearchApiAbstractProcessor::configurationForm

File

includes/content_taxonomy_autocomplete_moderated_terms.inc, line 13

Class

ContentTaxonomyAutocompleteModeratedTermsSearchAPIProcessor
Search API Processor that filters out terms from moderated vocabularies.

Code

public function configurationForm() {
  $form = parent::configurationForm();
  $form['fields']['#options'] = $this
    ->filterTaxonomyFieldsOptions($form['fields']['#options']);
  return $form;
}