You are here

function search_api_admin_index_edit_validate in Search API 7

Form validation handler for search_api_admin_index_edit().

See also

search_api_admin_index_edit_submit()

File

./search_api.admin.inc, line 1410
Administration page callbacks for the Search API module.

Code

function search_api_admin_index_edit_validate(array $form, array &$form_state) {
  if (!empty($form['options']['datasource'])) {
    $form_state['values']['options'] += array(
      'datasource' => array(),
    );
    $form_state['index']
      ->datasource()
      ->configurationFormValidate($form['options']['datasource'], $form_state['values']['options']['datasource'], $form_state);
  }
}