You are here

function print_entity_info_alter in Printer, email and PDF versions 7

Same name and namespace in other branches
  1. 7.2 print.module \print_entity_info_alter()

Implements hook_entity_info_alter().

File

./print.module, line 547
Displays Printer-friendly versions of Drupal pages.

Code

function print_entity_info_alter(&$info) {

  // Add the 'Print' view mode for nodes.
  $info['node']['view modes'] += array(
    'print' => array(
      'label' => t('Print'),
      'custom settings' => FALSE,
    ),
  );
}