You are here

function phpmailer_menu in PHPMailer 5

Same name and namespace in other branches
  1. 5.2 phpmailer.module \phpmailer_menu()
  2. 6.3 phpmailer.module \phpmailer_menu()
  3. 6 phpmailer.module \phpmailer_menu()
  4. 6.2 phpmailer.module \phpmailer_menu()
  5. 7.4 phpmailer.module \phpmailer_menu()
  6. 7.3 phpmailer.module \phpmailer_menu()

Implementation of hook_menu().

File

./phpmailer.module, line 19
This module integrates PHPMailer with Drupal, both as native drupal_mail() wrapper, and as part of the Mime Mail module.

Code

function phpmailer_menu($may_cache) {
  $items = array();
  if ($may_cache && !module_exists('mimemail')) {
    $items[] = array(
      'path' => 'admin/settings/phpmailer',
      'title' => t('Mail'),
      'description' => t('Configure PHPMailer e-mail settings.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => 'phpmailer_settings_form',
      'access' => user_access('administer phpmailer settings'),
    );
  }
  return $items;
}