function print_menu in Printer, email and PDF versions 5.2
Same name and namespace in other branches
- 5.4 print.module \print_menu()
- 5 print.module \print_menu()
- 5.3 print.module \print_menu()
- 6 print.module \print_menu()
- 7.2 print.module \print_menu()
- 7 print.module \print_menu()
- 5.x print.module \print_menu()
Implementation of hook_menu()
File
- ./
print.module, line 24 - Display printer-friendly versions of Drupal pages
Code
function print_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => PRINT_PATH,
'title' => t('Printer-friendly'),
'callback' => 'print_controller',
'access' => user_access('access print'),
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => 'admin/settings/print',
'title' => t('Printer-friendly'),
'description' => t('Adds a printer-friendly version link to node pages.'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'print_main_settings',
),
'access' => user_access('administer print'),
);
}
return $items;
}