function print_pdf_menu in Printer, email and PDF versions 5.3
Same name and namespace in other branches
- 5.4 print_pdf/print_pdf.module \print_pdf_menu()
- 6 print_pdf/print_pdf.module \print_pdf_menu()
- 7.2 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()
Implementation of hook_menu().
File
- print_pdf/
print_pdf.module, line 32
Code
function print_pdf_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => PRINTPDF_PATH,
'title' => t('Printer-friendly PDF'),
'callback' => 'print_pdf_controller',
'access' => user_access('access print'),
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => 'admin/settings/print/pdf',
'title' => t('PDF'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'print_pdf_settings',
),
'access' => user_access('administer print'),
'weight' => 3,
'type' => MENU_LOCAL_TASK,
);
}
return $items;
}