| Versionen | |
|---|---|
| drupal6 – drupal7 | book_type_is_allowed($type) |
Determine if a given node type is in the list of types allowed for books.
modules/
<?php
function book_type_is_allowed($type) {
return in_array($type, variable_get('book_allowed_types', array('book')));
}
?>
Kommentare
Kommentar hinzufügen