function print_entity_info_alter in Printer, email and PDF versions 7.2
Same name and namespace in other branches
- 7 print.module \print_entity_info_alter()
Implements hook_entity_info_alter().
File
- ./
print.module, line 297 - 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_VIEW_MODE => array(
'label' => t('Print'),
'custom settings' => FALSE,
),
);
// Add the 'Print' view mode for field_collections.
if (module_exists('field_collection')) {
$info['field_collection_item']['view modes'] += array(
PRINT_VIEW_MODE => array(
'label' => t('Print'),
'custom settings' => FALSE,
),
);
}
}