| 1 book.module | book_all_types_allowed() |
Determine if users are allowed to add any content type to books.
Return value
bool: A Boolean TRUE if all node types can be included in books for this user; otherwise, FALSE.
File
- core/
modules/ book/ book.module, line 1170 - Allows users to create and organize related content in an outline.
Code
function book_all_types_allowed() {
return user_access('administer book outlines') && config_get('book.settings', 'book_admin_allowed_all');
}