function book_type_is_allowed

Determines if a given node type is in the list of types allowed for books.

1 call to book_type_is_allowed()
book_form_node_form_alter in drupal/core/modules/book/book.module
Implements hook_form_BASE_FORM_ID_alter() for node_form().

File

drupal/core/modules/book/book.module, line 1301
Allows users to create and organize related content in an outline.

Code

function book_type_is_allowed($type) {
  return in_array($type, config('book.settings')
    ->get('allowed_types'));
}