function reroute_email_menu in Reroute Email 6
Same name and namespace in other branches
- 5 reroute_email.module \reroute_email_menu()
- 7 reroute_email.module \reroute_email_menu()
Implements hook_menu().
File
- ./
reroute_email.module, line 28 - Intercepts all outgoing emails to be rerouted to a configurable destination.
Code
function reroute_email_menu() {
$items = array();
$items['admin/settings/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/settings/reroute_email/settings'] = array(
'title' => 'Settings',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/settings/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;
}