You are here

function reroute_email_menu in Reroute Email 5

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

Implements hook_menu().

File

./reroute_email.module, line 13
Reroute Email module

Code

function reroute_email_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/reroute_email',
      'title' => 'Reroute Email',
      'description' => 'Reroute emails to a test address.',
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'reroute_email_settings',
      ),
      'type' => MENU_NORMAL_ITEM,
    );
  }
  return $items;
}