You are here

function book_access_user in Book access 6.2

Same name and namespace in other branches
  1. 6 book_access.module \book_access_user()

Implements hook_user().

7 string references to 'book_access_user'
BookAccess::addUserGrants in ./book_access.module
Adds user grants to book pages.
BookAccess::deleteGrants in ./book_access.module
Deletes the book access grants from the database.
BookAccess::getGrantRecords in ./book_access.module
Gets the list of grant records assigned to a book.
book_access_node_access_explain in ./book_access.module
Implements hook_node_access_explain().
book_access_update_6201 in ./book_access.install
Implements hook_update_N().

... See full list

File

./book_access.module, line 867
Allows to set the access control for book nodes on a per book basis. It is based on forum_access.module and tac_lite.module.

Code

function book_access_user($op, &$edit, &$account, $category = NULL) {
  if ($op == 'delete') {
    BookAccess::deleteGrants($account->uid, 'uid');
  }
}