function book_entity_info_alter

7.x book.module book_entity_info_alter(&$info)

Implements hook_entity_info_alter().

File

drupal/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,
    ),
  );
}