You are here

function book_access_user in Book access 6

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

Implements hook_user().

7 string references to 'book_access_user'
book_access_node_access_explain in ./book_access.module
Implements hook_node_access_explain().
book_access_permissions_form_submit in ./book_access.admin.inc
Submission callback for the administration settings.
book_access_update_6101 in ./book_access.install
Implements hook_update_N().
book_access_update_6104 in ./book_access.install
Implements hook_update_N().
book_access_user_add_submit in ./book_access.admin.inc
Submission callback to add a new user to the permissions table.

... See full list

File

./book_access.module, line 309
Allows 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') {
    db_query("DELETE FROM {book_access_user} WHERE uid = %d", $account->uid);
  }
}