function book_type_is_allowed in Drupal 6
Same name and namespace in other branches
- 8 core/modules/book/book.module \book_type_is_allowed()
- 7 modules/book/book.module \book_type_is_allowed()
- 9 core/modules/book/book.module \book_type_is_allowed()
Determine if a given node type is in the list of types allowed for books.
1 call to book_type_is_allowed()
- book_form_alter in modules/
book/ book.module - Implementation of hook_form_alter(). Adds the book fieldset to the node form.
File
- modules/
book/ book.module, line 967 - Allows users to structure the pages of a site in a hierarchy or outline.
Code
function book_type_is_allowed($type) {
return in_array($type, variable_get('book_allowed_types', array(
'book',
)));
}