You are here

function book_access_ui_user_permissions_remove in Book access 7.2

Same name and namespace in other branches
  1. 6.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 346
Administration interface for the Book access module.

Code

function book_access_ui_user_permissions_remove($form, $form_state, $node, $user) {
  $form['#bid'] = $node->book['bid'];
  $form['#uid'] = $user->uid;
  $top_node = node_load($form['#bid']);
  $title = $top_node ? $top_node->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/' . $form['#bid'] . '/book_access', t('This action cannot be undone.'), t('Remove'));
}