Same name and namespace in other branches
  1. 10 core/modules/book/book.module \book_type_is_allowed()
  2. 7.x modules/book/book.module \book_type_is_allowed()
  3. 8.9.x core/modules/book/book.module \book_type_is_allowed()
  4. 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.

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',
  )));
}