function autoassignrole_page_delete_confirm in Auto Assign Role 7
Same name and namespace in other branches
- 7.2 autoassignrole.admin.inc \autoassignrole_page_delete_confirm()
Function to delete role-specific page.
1 string reference to 'autoassignrole_page_delete_confirm'
- autoassignrole_menu in ./
autoassignrole.module - Implements hook_menu().
File
- ./
autoassignrole.admin.inc, line 456 - Administrative functionality for auto assign role.
Code
function autoassignrole_page_delete_confirm($form, &$form_state, $page_id) {
$page = autoassignrole_get_page($page_id);
$form['page_id'] = array(
'#type' => 'value',
'#value' => $page_id,
);
return confirm_form($form, t('Are you sure you want to delete the page %name ?', array(
'%name' => $page->title,
)), 'admin/config/people/autoassignrole/pages', t('This action cannot be undone.'), t('Delete'));
}