You are here

function reroute_email_menu in Reroute Email 7

Same name and namespace in other branches
  1. 5 reroute_email.module \reroute_email_menu()
  2. 6 reroute_email.module \reroute_email_menu()

Implements hook_menu().

File

./reroute_email.module, line 55
Intercepts all outgoing emails to be rerouted to a configurable destination.

Code

function reroute_email_menu() {
  $items['admin/config/development/reroute_email'] = array(
    'title' => 'Reroute Email',
    'description' => 'Reroute emails to a test address.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'reroute_email_settings',
    ),
    'access arguments' => array(
      'administer reroute email',
    ),
    'file' => 'reroute_email.admin.inc',
  );
  $items['admin/config/development/reroute_email/settings'] = array(
    'title' => 'Settings',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/config/development/reroute_email/test'] = array(
    'title' => 'Test email form',
    'type' => MENU_LOCAL_TASK,
    'description' => 'Form for sending test email.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'reroute_email_test_email_form',
    ),
    'access arguments' => array(
      'administer reroute email',
    ),
    'file' => 'reroute_email.admin.inc',
  );
  return $items;
}