function book_access_ui_user_permissions_remove in Book access 6.2
Same name and namespace in other branches
- 7.2 book_access_ui.admin.inc \book_access_ui_user_permissions_remove()
Form builder for the remove permissions confirmation form.
See also
book_access_ui_user_permissions_remove_submit()
1 string reference to 'book_access_ui_user_permissions_remove'
- book_access_ui_menu in ./
book_access_ui.module - Implements hook_menu().
File
- ./
book_access_ui.admin.inc, line 286 - Administration interface for the Book access module.
Code
function book_access_ui_user_permissions_remove($form_state, $node, $user) {
$form = array(
'#bid' => $node->book['bid'],
'#uid' => $user->uid,
);
if ($top_node = node_load($node->book['bid'])) {
$title = $top_node->title;
}
else {
$title = '#' . $node->book['bid'];
}
return confirm_form($form, t('Are you sure you want to remove the user %user permissions for the book %title?', array(
'%user' => $user->name,
'%title' => $title,
)), 'node/' . $node->book['bid'] . '/book_access', t('This action cannot be undone.'), t('Remove'));
}