You are here

function book_entity_info_alter in Drupal 7

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