You are here

function phpmailer_menu in PHPMailer 7.3

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 phpmailer.module \phpmailer_menu()
  5. 6.2 phpmailer.module \phpmailer_menu()
  6. 7.4 phpmailer.module \phpmailer_menu()

Implements hook_menu().

File

./phpmailer.module, line 23
Integrates the PHPMailer library for SMTP e-mail delivery.

Code

function phpmailer_menu() {
  $items['admin/config/system/phpmailer'] = array(
    'title' => 'PHPMailer',
    'description' => 'Configure PHPMailer settings.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'phpmailer_settings_form',
    ),
    'access arguments' => array(
      'administer phpmailer settings',
    ),
    'file' => 'phpmailer.admin.inc',
  );

  // @todo Move to Mime Mail project.
  $items['phpmailer/preview'] = array(
    'title' => 'Mail preview',
    'page callback' => 'phpmailer_preview',
    'access callback' => 'phpmailer_preview_access',
    'file' => 'phpmailer.admin.inc',
    'type' => MENU_CALLBACK,
  );
  return $items;
}