You are here

function phpmailer_menu in PHPMailer 6

Same name and namespace in other branches
  1. 5.2 phpmailer.module \phpmailer_menu()
  2. 5 phpmailer.module \phpmailer_menu()
  3. 6.3 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() {
  $items['admin/settings/phpmailer'] = array(
    'title' => 'PHPMailer',
    'description' => 'Configure PHPMailer settings.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'phpmailer_settings_form',
    ),
    'access callback' => 'phpmailer_settings_access',
    'file' => 'phpmailer.admin.inc',
  );
  $items['phpmailer/preview'] = array(
    'title' => 'Mail preview',
    'page callback' => 'phpmailer_preview',
    'access callback' => 'phpmailer_preview_access',
    'type' => MENU_CALLBACK,
  );
  return $items;
}