function apachesolr_environment_edit_test_submit in Apache Solr Search 6.3
Same name and namespace in other branches
- 8 apachesolr.admin.inc \apachesolr_environment_edit_test_submit()
- 7 apachesolr.admin.inc \apachesolr_environment_edit_test_submit()
1 string reference to 'apachesolr_environment_edit_test_submit'
- apachesolr_environment_edit_form in ./
apachesolr.admin.inc - Form builder for adding/editing a Solr environment used as a menu callback.
File
- ./
apachesolr.admin.inc, line 220 - Administrative pages for the Apache Solr framework.
Code
function apachesolr_environment_edit_test_submit($form, &$form_state) {
$ping = apachesolr_server_status($form_state['values']['url'], $form_state['values']['service_class'], $form_state['values']['service_class_info']);
if ($ping) {
drupal_set_message(t('Your site has contacted the Apache Solr server.'));
}
else {
drupal_set_message(t('Your site was unable to contact the Apache Solr server.'), 'error');
}
apachesolr_environment_save($form_state['values']);
//$form_state['rebuild'] = TRUE;
}