function book_access_user_role_insert in Book access 7.2
Same name and namespace in other branches
- 1.x book_access.module \book_access_user_role_insert()
Implements hook_user_role_insert().
Makes sure to set default viewability when a new role is created.
File
- ./
book_access.module, line 841 - Allows to set the access control for book nodes on a per book basis. Based on forum_access.module and tac_lite.module.
Code
function book_access_user_role_insert($role) {
BookAccess::setDefaultForRole($role->rid, $role->name);
}