You are here

function search_api_admin_index_workflow_validate in Search API 7

Form validation handler for search_api_admin_index_workflow().

See also

search_api_admin_index_workflow_submit()

File

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

Code

function search_api_admin_index_workflow_validate(array $form, array &$form_state) {

  // Call validation functions.
  foreach ($form_state['callbacks'] as $name => $callback) {
    if (isset($form['callbacks']['settings'][$name]) && isset($form_state['values']['callbacks'][$name]['settings'])) {
      $callback
        ->configurationFormValidate($form['callbacks']['settings'][$name], $form_state['values']['callbacks'][$name]['settings'], $form_state);
    }
  }
  foreach ($form_state['processors'] as $name => $processor) {
    if (isset($form['processors']['settings'][$name]) && isset($form_state['values']['processors'][$name]['settings'])) {
      $processor
        ->configurationFormValidate($form['processors']['settings'][$name], $form_state['values']['processors'][$name]['settings'], $form_state);
    }
  }
}