function search_by_page_delete_confirm in Search by Page 6
Same name and namespace in other branches
- 8 search_by_page.module \search_by_page_delete_confirm()
- 7 search_by_page.module \search_by_page_delete_confirm()
Returns a form confirming deletion of an environment.
See also
search_by_page_delete_confirm_submit()
1 string reference to 'search_by_page_delete_confirm'
- search_by_page_menu in ./
search_by_page.module - Implementation of hook_menu().
File
- ./
search_by_page.module, line 1212 - Main module file for Drupal module Search by Page.
Code
function search_by_page_delete_confirm($form_state, $envid) {
$envname = search_by_page_setting_get('environment_name', $envid, t('new'));
if (module_exists('i18nstrings')) {
$envname = i18nstrings('search_by_page:environment:name' . $envid, $envname);
}
$form = array(
'envid' => array(
'#type' => 'value',
'#value' => $envid,
),
);
$output = confirm_form($form, t('Are you sure you want to delete environment %env?', array(
'%env' => $envname,
)), 'admin/settings/search_by_page');
return $output;
}