function book_type_is_allowed
Same name in other branches
- 9 core/modules/book/book.module \book_type_is_allowed()
- 8.9.x core/modules/book/book.module \book_type_is_allowed()
- 10 core/modules/book/book.module \book_type_is_allowed()
- 11.x core/modules/book/book.module \book_type_is_allowed()
Determine if a given node type is in the list of types allowed for books.
Parameters
$type: A node type.
Return value
A Boolean TRUE if the node type can be included in books; otherwise, FALSE.
1 call to book_type_is_allowed()
- book_form_node_form_alter in modules/
book/ book.module - Implements hook_form_BASE_FORM_ID_alter() for node_form().
File
-
modules/
book/ book.module, line 1316
Code
function book_type_is_allowed($type) {
return in_array($type, variable_get('book_allowed_types', array(
'book',
)));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.