You are here

public function SearchApiAbstractProcessor::configurationFormValidate in Search API 7

Validation callback for the form returned by configurationForm().

Parameters

array $form: The form returned by configurationForm().

array $values: The part of the $form_state['values'] array corresponding to this form.

array $form_state: The complete form state.

Overrides SearchApiProcessorInterface::configurationFormValidate

3 calls to SearchApiAbstractProcessor::configurationFormValidate()
SearchApiHtmlFilter::configurationFormValidate in includes/processor_html_filter.inc
Validation callback for the form returned by configurationForm().
SearchApiStopWords::configurationFormValidate in includes/processor_stopwords.inc
Validation callback for the form returned by configurationForm().
SearchApiTokenizer::configurationFormValidate in includes/processor_tokenizer.inc
Validation callback for the form returned by configurationForm().
4 methods override SearchApiAbstractProcessor::configurationFormValidate()
SearchApiHighlight::configurationFormValidate in includes/processor_highlight.inc
Validation callback for the form returned by configurationForm().
SearchApiHtmlFilter::configurationFormValidate in includes/processor_html_filter.inc
Validation callback for the form returned by configurationForm().
SearchApiStopWords::configurationFormValidate in includes/processor_stopwords.inc
Validation callback for the form returned by configurationForm().
SearchApiTokenizer::configurationFormValidate in includes/processor_tokenizer.inc
Validation callback for the form returned by configurationForm().

File

includes/processor.inc, line 192
Contains SearchApiProcessorInterface and SearchApiAbstractProcessor.

Class

SearchApiAbstractProcessor
Abstract processor implementation that provides an easy framework for only processing specific fields.

Code

public function configurationFormValidate(array $form, array &$values, array &$form_state) {
  $fields = array_filter($values['fields']);
  if ($fields) {
    $fields = array_fill_keys($fields, TRUE);
  }
  $values['fields'] = $fields;
}