You are here

function apachesolr_environment_clone_form_submit in Apache Solr Search 8

Same name and namespace in other branches
  1. 6.3 apachesolr.admin.inc \apachesolr_environment_clone_form_submit()
  2. 7 apachesolr.admin.inc \apachesolr_environment_clone_form_submit()

Submit handler for the clone form

_state

Parameters

array $form:

File

./apachesolr.admin.inc, line 116
Administrative pages for the Apache Solr framework.

Code

function apachesolr_environment_clone_form_submit(array $form, array &$form_state) {
  if (apachesolr_environment_clone($form_state['values']['env_id'])) {
    drupal_set_message(t('The search environment was cloned'));
  }
  $form_state['redirect'] = 'admin/config/search/apachesolr/settings';
}