function print_pdf_menu in Printer, email and PDF versions 7.2
Same name and namespace in other branches
- 5.4 print_pdf/print_pdf.module \print_pdf_menu()
- 5.3 print_pdf/print_pdf.module \print_pdf_menu()
- 6 print_pdf/print_pdf.module \print_pdf_menu()
- 7 print_pdf/print_pdf.module \print_pdf_menu()
- 5.x print_pdf/print_pdf.module \print_pdf_menu()
Implements hook_menu().
File
- print_pdf/
print_pdf.module, line 101 - Displays Printer-friendly versions of Drupal pages.
Code
function print_pdf_menu() {
$link = print_pdf_print_link();
$items = array();
$items[$link['path']] = array(
'title' => 'Printer-friendly PDF',
'page callback' => 'print_pdf_controller',
'access arguments' => array(
'access PDF version',
),
'type' => MENU_CALLBACK,
'file' => 'print_pdf.pages.inc',
);
$items[$link['path'] . '/' . $link['path']] = array(
'access callback' => FALSE,
);
$items['admin/config/user-interface/print/pdf'] = array(
'title' => 'PDF',
'description' => 'Configure the settings of the PDF generation functionality.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'print_pdf_settings',
),
'access arguments' => array(
'administer print',
),
'weight' => 3,
'type' => MENU_LOCAL_TASK,
'file' => 'print_pdf.admin.inc',
);
$items['admin/config/user-interface/print/pdf/options'] = array(
'title' => 'Options',
'weight' => -1,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
return $items;
}