function print_mail_menu in Printer, email and PDF versions 6
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()
- 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 56 - Displays Printer-friendly versions of Drupal pages.
Code
function print_mail_menu() {
$items = array();
$items[PRINTMAIL_PATH] = array(
'title' => variable_get('print_mail_text_title', 'Send page 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[PRINTMAIL_PATH . '/' . PRINTMAIL_PATH] = array(
'access callback' => FALSE,
);
$items['admin/settings/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',
);
$items['admin/settings/print/email/options'] = array(
'title' => 'Options',
'weight' => 1,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/settings/print/email/strings'] = array(
'title' => 'Text strings',
'description' => 'Override the user-facing strings used in the send by email version.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'print_mail_strings_settings',
),
'access arguments' => array(
'administer print',
),
'weight' => 2,
'type' => MENU_LOCAL_TASK,
'file' => 'print_mail.admin.inc',
);
return $items;
}