Determines if a given node type is in the list of types allowed for books.
function book_type_is_allowed($type) { return in_array($type, config('book.settings') ->get('allowed_types')); }