You are here

function pdf_using_mpdf_entity_info_alter in PDF using mPDF 7.2

Implements hook_entity_info_alter().

File

./pdf_using_mpdf.module, line 395
Prints PDF for a given html node view.

Code

function pdf_using_mpdf_entity_info_alter(&$info) {

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