function book_type_is_allowed
7.x book.module | book_type_is_allowed($type) |
6.x book.module | book_type_is_allowed($type) |
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 drupal-6.x/
modules/ book/ book.module - Implementation of hook_form_alter(). Adds the book fieldset to the node form.
File
- drupal-6.x/
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')));
}