book_made_simple.api.php in Book made simple 7.3
Hooks provided by the entity API.
File
book_made_simple.api.phpView source
<?php
/**
* @file
* Hooks provided by the entity API.
*/
/**
* @addtogroup hooks
* @{
*/
/**
* Allows other modules to change list of allowed content types.
* Potential use case is to remove content types from the list, depending on a
* field in the book.
*
* @param string $allowed_types
* List of allowed content types that can be books.
*/
function mymodule_book_made_simple_allowed_types_list_alter(&$allowedTypes) {
// Example rempoves thee content type page from list.
unset($allowed_types['page']);
}
/**
* @} End of "addtogroup hooks".
*/
Functions
Name![]() |
Description |
---|---|
mymodule_book_made_simple_allowed_types_list_alter | Allows other modules to change list of allowed content types. Potential use case is to remove content types from the list, depending on a field in the book. |