function book_type_is_allowed
book_type_is_allowed($type)
Determine if a given node type is in the list of types allowed for books.
Parameters
$type: A node type.
Return value
A Boolean TRUE if the node type can be included in books; otherwise, FALSE.
File
- modules/book/book.module, line 1313
- Allows users to create and organize related content in an outline.
Code
function book_type_is_allowed($type) { return in_array($type, variable_get('book_allowed_types', array('book'))); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!book!book.module/function/book_type_is_allowed/7.x