You are here

function messaging_phpmailer_menu in Messaging 6.4

Same name and namespace in other branches
  1. 6 messaging_phpmailer/messaging_phpmailer.module \messaging_phpmailer_menu()
  2. 6.2 messaging_phpmailer/messaging_phpmailer.module \messaging_phpmailer_menu()
  3. 6.3 messaging_phpmailer/messaging_phpmailer.module \messaging_phpmailer_menu()

Implementation of hook_menu().

File

messaging_phpmailer/messaging_phpmailer.module, line 10
HTML Mail using PHPMailer. Messaging method plug-in.

Code

function messaging_phpmailer_menu() {
  $items = array();
  $items['admin/messaging/settings/method/phpmailer'] = array(
    'title' => 'PHPMailer',
    'description' => 'Configure PHPMailer.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'messaging_phpmailer_settings_form',
    ),
    'access arguments' => array(
      'administer messaging',
    ),
    'type' => MENU_LOCAL_TASK,
    'filter' => 'messaging_html',
    // Default filter for this format
    'anonymous' => TRUE,
  );
  return $items;
}