function apachesolr_environment_delete_form in Apache Solr Search 6.3
Same name and namespace in other branches
- 8 apachesolr.admin.inc \apachesolr_environment_delete_form()
- 7 apachesolr.admin.inc \apachesolr_environment_delete_form()
Form to delete a search environment
Parameters
$environment: The environment to delete
1 string reference to 'apachesolr_environment_delete_form'
- apachesolr_menu in ./
apachesolr.module - Implements hook_menu().
File
- ./
apachesolr.admin.inc, line 13 - Administrative pages for the Apache Solr framework.
Code
function apachesolr_environment_delete_form(&$form_state, $environment) {
$form = array();
$form['env_id'] = array(
'#type' => 'value',
'#value' => $environment['env_id'],
);
if (isset($environment['export_type']) && $environment['export_type'] == 3) {
$verb = t('Revert');
}
else {
$verb = t('Delete');
}
return confirm_form($form, t('Are you sure you want to !verb search environment %name?', array(
'%name' => $environment['name'],
'!verb' => strtolower($verb),
)), 'admin/settings/apachesolr', t('This action cannot be undone.'), $verb, t('Cancel'));
}