function print_mail_menu in Printer, email and PDF versions 5.4
Same name and namespace in other branches
- 5.3 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 43
Code
function print_mail_menu($may_cache) {
$items = array();
if ($may_cache) {
$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,
);
$items[] = array(
'path' => 'admin/settings/print/email/options',
'title' => t('Options'),
'weight' => 1,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items[] = array(
'path' => 'admin/settings/print/email/strings',
'title' => t('Text strings'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'print_mail_strings_settings',
),
'access' => user_access('administer print'),
'weight' => 2,
'type' => MENU_LOCAL_TASK,
);
}
else {
$items[] = array(
'path' => PRINTMAIL_PATH,
'title' => t('Send page by e-mail'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'print_mail_form',
),
'access' => _print_mail_access('access send to friend'),
'type' => MENU_CALLBACK,
);
}
return $items;
}