You are here

function swiftmailer_menu in Swift Mailer 7

Implements hook_menu().

File

./swiftmailer.module, line 49
This is the primary module file.

Code

function swiftmailer_menu() {
  $items['admin/config/people/swiftmailer'] = array(
    'type' => MENU_NORMAL_ITEM,
    'title' => 'E-mail delivery',
    'description' => 'Configure settings for e-mail delivery.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'swiftmailer_admin_default_form',
    ),
    'file' => 'includes/pages/swiftmailer_admin_default.inc',
    'access arguments' => array(
      SWIFTMAILER_ADMINISTER,
    ),
  );
  $items['admin/config/people/swiftmailer/default'] = array(
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'title' => 'Library',
    'description' => 'Configure where the Swift Mailer Library is located.',
    'weight' => -10,
  );
  $items['admin/config/people/swiftmailer/transport'] = array(
    'type' => MENU_LOCAL_TASK,
    'title' => 'Transport',
    'description' => 'Configure how Swift Mailer will send e-mails.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'swiftmailer_admin_transport_form',
    ),
    'file' => 'includes/pages/swiftmailer_admin_transport.inc',
    'access arguments' => array(
      SWIFTMAILER_ADMINISTER,
    ),
  );
  $items['admin/config/people/swiftmailer/messages'] = array(
    'type' => MENU_LOCAL_TASK,
    'title' => 'Messages',
    'description' => 'Configure how Swift Mailer will compose messages.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'swiftmailer_admin_messages_form',
    ),
    'file' => 'includes/pages/swiftmailer_admin_messages.inc',
    'access arguments' => array(
      SWIFTMAILER_ADMINISTER,
    ),
    'weight' => 2,
  );
  $items['admin/config/people/swiftmailer/test'] = array(
    'type' => MENU_LOCAL_TASK,
    'title' => 'Test',
    'description' => 'Send a test e-mail to verify that the configuration works.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'swiftmailer_admin_test_form',
    ),
    'file' => 'includes/pages/swiftmailer_admin_test.inc',
    'access arguments' => array(
      SWIFTMAILER_ADMINISTER,
    ),
    'weight' => 2,
  );
  return $items;
}