You are here

function tcpdf_example_menu in TCPDF 7

Implements hook_menu().

File

tcpdf_example/tcpdf_example.module, line 10
Provide examples of using the TCPDF module.

Code

function tcpdf_example_menu() {
  $items['tcpdf_example/download/%'] = array(
    'title' => 'Download pdf',
    'description' => 'TCPDF usage example.',
    'page callback' => 'tcpdf_example_download',
    'page arguments' => array(
      2,
    ),
    'access arguments' => array(
      'use tcpdf example',
    ),
    'file' => 'tcpdf_example.pages.inc',
  );
  $items['tcpdf_example/contents'] = array(
    'title' => 'TCPDF examples',
    'description' => 'List of TCPDF examples.',
    'page callback' => 'tcpdf_example_contents',
    'access arguments' => array(
      'use tcpdf example',
    ),
    'file' => 'tcpdf_example.pages.inc',
  );
  return $items;
}