function print_mail_menu in Printer, email and PDF versions 5.3
Same name and namespace in other branches
- 5.4 print_mail/print_mail.module \print_mail_menu()
- 6 print_mail/print_mail.module \print_mail_menu()
- 7.2 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()
Implementation of hook_menu().
File
- print_mail/
print_mail.module, line 29
Code
function print_mail_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => PRINTMAIL_PATH,
'title' => t('Send page by e-mail'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'print_mail_form',
),
'access' => user_access('access print'),
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => 'admin/settings/print/email',
'title' => t('e-mail'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'print_mail_settings',
),
'access' => user_access('administer print'),
'weight' => 2,
'type' => MENU_LOCAL_TASK,
);
}
return $items;
}