function flag_lists_delete_confirm in Flag Lists 6
Same name and namespace in other branches
- 7.3 flag_lists.admin.inc \flag_lists_delete_confirm()
- 7 flag_lists.admin.inc \flag_lists_delete_confirm()
Delete flag lists page.
1 string reference to 'flag_lists_delete_confirm'
- flag_lists_menu in ./
flag_lists.module - Implementation of hook_menu().
File
- ./
flag_lists.admin.inc, line 253 - Contains administrative pages for creating, editing, and deleting flag lists.
Code
function flag_lists_delete_confirm(&$form_state, $name) {
$flag = flag_lists_get_flag($name);
if (empty($flag)) {
drupal_goto();
}
$form['fid'] = array(
'#type' => 'value',
'#value' => $flag->fid,
);
return confirm_form($form, t('Are you sure you want to delete %title?', array(
'%title' => $flag
->get_title(),
)), isset($_GET['destination']) ? $_GET['destination'] : '/', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}