You are here

function apachesolr_environment_clone_form in Apache Solr Search 7

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

Form to clone a certain environment

_state

Parameters

array $form:

array $environment:

Return value

array output of confirm_form()

1 string reference to 'apachesolr_environment_clone_form'
apachesolr_menu in ./apachesolr.module
Implements hook_menu().

File

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

Code

function apachesolr_environment_clone_form(array $form, array &$form_state, array $environment) {
  $form['env_id'] = array(
    '#type' => 'value',
    '#value' => $environment['env_id'],
  );
  return confirm_form($form, t('Are you sure you want to clone search environment %name?', array(
    '%name' => $environment['name'],
  )), 'admin/config/search/apachesolr', '', t('Clone'), t('Cancel'));
}