function search_api_admin_server_edit_submit in Search API 7
Form submission handler for search_api_admin_server_edit().
See also
search_api_admin_server_edit_validate()
File
- ./
search_api.admin.inc, line 661 - Administration page callbacks for the Search API module.
Code
function search_api_admin_server_edit_submit(array $form, array &$form_state) {
form_state_values_clean($form_state);
$values = $form_state['values'];
$server = $form_state['server'];
if (isset($values['options'])) {
$server
->configurationFormSubmit($form['options']['form'], $values['options']['form'], $form_state);
}
unset($values['options']);
$server
->update($values);
$form_state['redirect'] = 'admin/config/search/search_api/server/' . $server->machine_name;
drupal_set_message(t('The search server was successfully edited.'));
}