function print_mail_menu in Printer, email and PDF versions 7.2
Same name and namespace in other branches
- 5.4 print_mail/print_mail.module \print_mail_menu()
- 5.3 print_mail/print_mail.module \print_mail_menu()
- 6 print_mail/print_mail.module \print_mail_menu()
- 7 print_mail/print_mail.module \print_mail_menu()
- 5.x print_mail/print_mail.module \print_mail_menu()
Implements hook_menu().
File
- print_mail/
print_mail.module, line 72 - Displays Printer-friendly versions of Drupal pages.
Code
function print_mail_menu() {
$link = print_mail_print_link();
$items = array();
$items[$link['path']] = array(
'title' => 'Send by email',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'print_mail_form',
),
'access callback' => '_print_mail_access',
'access arguments' => array(
'access send by email',
),
'type' => MENU_CALLBACK,
'file' => 'print_mail.inc',
);
$items[$link['path'] . '/' . $link['path']] = array(
'access callback' => FALSE,
);
$items['admin/config/user-interface/print/email'] = array(
'title' => 'email',
'description' => 'Configure the settings of the send by email functionality.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'print_mail_settings',
),
'access arguments' => array(
'administer print',
),
'weight' => 2,
'type' => MENU_LOCAL_TASK,
'file' => 'print_mail.admin.inc',
);
return $items;
}