function apachesolr_environment_clone_form in Apache Solr Search 8
Same name and namespace in other branches
- 6.3 apachesolr.admin.inc \apachesolr_environment_clone_form()
- 7 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'));
}