You are here

function smtp_menu in SMTP Authentication Support 5

Same name and namespace in other branches
  1. 6 smtp.module \smtp_menu()
  2. 7.2 smtp.module \smtp_menu()
  3. 7 smtp.module \smtp_menu()

Implementation of hook_menu().

File

./smtp.module, line 20
Enables drupal to send email directly to an SMTP server using authentication. Uses the PHPMailer class by Brent R. Matzelle.

Code

function smtp_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/smtp',
      'title' => t('SMTP support'),
      'description' => t('Allows the sending of site email to an SMTP server of your choice.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => 'smtp_admin_settings',
      'type' => MENU_NORMAL_ITEM,
    );
  }
  return $items;
}