book_type_is_allowed

Versions
6 – 7
book_type_is_allowed($type)

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

Code

modules/book/book.module, line 967

<?php
function book_type_is_allowed($type) {
  return in_array($type, variable_get('book_allowed_types', array('book')));
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.