You are here

public function SearchApiAlterLanguageControl::configurationFormSubmit in Search API 7

Implements SearchApiAlterCallbackInterface::configurationFormSubmit().

Overrides SearchApiAbstractAlterCallback::configurationFormSubmit

File

includes/callback_language_control.inc, line 94
Contains SearchApiAlterLanguageControl.

Class

SearchApiAlterLanguageControl
Search API data alteration callback that filters out items based on their bundle.

Code

public function configurationFormSubmit(array $form, array &$values, array &$form_state) {
  $values['languages'] = array_filter($values['languages']);
  return parent::configurationFormSubmit($form, $values, $form_state);
}