You are here

public function SearchApiAbstractDataSourceController::configurationFormSubmit in Search API 7

Submit callback for the form returned by configurationForm().

This method will only be called if that form was non-empty.

Any necessary changes to the submitted values should be made, afterwards they will automatically be stored as the index's "datasource" options. The method can also be used by the datasource controller to react to the possible change in its settings.

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 SearchApiDataSourceControllerInterface::configurationFormSubmit

2 methods override SearchApiAbstractDataSourceController::configurationFormSubmit()
SearchApiCombinedEntityDataSourceController::configurationFormSubmit in includes/datasource_multiple.inc
Submit callback for the form returned by configurationForm().
SearchApiEntityDataSourceController::configurationFormSubmit in includes/datasource_entity.inc
Submit callback for the form returned by configurationForm().

File

includes/datasource.inc, line 846
Contains the SearchApiDataSourceControllerInterface as well as a default base class.

Class

SearchApiAbstractDataSourceController
Provides a default base class for datasource controllers.

Code

public function configurationFormSubmit(array $form, array &$values, array &$form_state) {
}