You are here

printable_pdf.module in Printer and PDF versions for Drupal 8+ 8

Same filename and directory in other branches
  1. 2.x modules/printable_pdf/printable_pdf.module

Provides a printable format for generating PDFs.

File

modules/printable_pdf/printable_pdf.module
View source
<?php

/**
 * @file
 * Provides a printable format for generating PDFs.
 */

/**
 * Implements hook_theme().
 */
function printable_pdf_theme() {
  $module_path = drupal_get_path('module', 'printable_pdf');
  return [
    'printable_pdf_footer' => [
      'template' => 'printable-footer',
      'pattern' => 'printable_footer__',
      'variables' => [],
      'path' => $module_path . '/templates',
    ],
    'printable_pdf_header' => [
      'template' => 'printable-header',
      'pattern' => 'printable_header__',
      'variables' => [],
      'path' => $module_path . '/templates',
    ],
  ];
}

Functions

Namesort descending Description
printable_pdf_theme Implements hook_theme().