function phpmailer_menu in PHPMailer 5.2
Same name and namespace in other branches
- 5 phpmailer.module \phpmailer_menu()
- 6.3 phpmailer.module \phpmailer_menu()
- 6 phpmailer.module \phpmailer_menu()
- 6.2 phpmailer.module \phpmailer_menu()
- 7.4 phpmailer.module \phpmailer_menu()
- 7.3 phpmailer.module \phpmailer_menu()
Implementation of hook_menu().
File
- ./
phpmailer.module, line 18 - Integrates the PHPMailer library for SMTP e-mail delivery.
Code
function phpmailer_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/settings/phpmailer',
'title' => t('PHPMailer'),
'description' => t('Configure PHPMailer settings.'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'phpmailer_settings',
),
'access' => phpmailer_settings_access(),
);
$items[] = array(
'path' => 'phpmailer/preview',
'title' => t('Mail preview'),
'callback' => 'phpmailer_preview',
'access' => phpmailer_preview_access(),
'type' => MENU_CALLBACK,
);
}
return $items;
}