On this page
function book_entity_info_alter
book_entity_info_alter(&$info)
Implements hook_entity_info_alter().
File
- modules/book/book.module, line 248
- Allows users to create and organize related content in an outline.
Code
function book_entity_info_alter(&$info) {
// Add the 'Print' view mode for nodes.
$info['node']['view modes'] += array(
'print' => array(
'label' => t('Print'),
'custom settings' => FALSE,
),
);
}
© 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_entity_info_alter/7.x