Determine if a given node type is in the list of types allowed for books.
$type: A node type.
A Boolean TRUE if the node type can be included in books; otherwise, FALSE.
function book_type_is_allowed($type) {
return in_array($type, variable_get('book_allowed_types', array(
'book',
)));
}