You are here

function mail_safety_menu in Mail Safety 7

Same name and namespace in other branches
  1. 7.2 mail_safety.module \mail_safety_menu()

Implements hook_menu().

File

./mail_safety.module, line 10
The core Mail Safety module file

Code

function mail_safety_menu() {
  $menu_items = array();
  $menu_items['admin/config/development/mail_safety'] = array(
    'title' => 'Mail Safety',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'mail_safety_admin_dashboard_form',
    ),
    'access arguments' => array(
      'use mail safety dashboard',
    ),
    'file' => 'mail_safety.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  $menu_items['admin/config/development/mail_safety/dashbard'] = array(
    'title' => 'Dashboard',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'access arguments' => array(
      'use mail safety dashboard',
    ),
    'weight' => -10,
  );
  $menu_items['admin/config/development/mail_safety/%mail_safety/view'] = array(
    'title' => 'View Mail',
    'page callback' => 'mail_safety_admin_view_mail',
    'page arguments' => array(
      4,
    ),
    'access arguments' => array(
      'use mail safety dashboard',
    ),
    'file' => 'mail_safety.admin.inc',
    'type' => MENU_LOCAL_TASK,
  );
  $menu_items['admin/config/development/mail_safety/%mail_safety/details'] = array(
    'title' => 'Details Mail',
    'page callback' => 'mail_safety_admin_details_mail',
    'page arguments' => array(
      4,
    ),
    'access arguments' => array(
      'use mail safety dashboard',
    ),
    'file' => 'mail_safety.admin.inc',
    'type' => MENU_LOCAL_TASK,
  );
  $menu_items['admin/config/development/mail_safety/%mail_safety/send_original'] = array(
    'title' => 'Send Original',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'mail_safety_admin_send_original_form',
      4,
    ),
    'access arguments' => array(
      'use mail safety dashboard',
    ),
    'file' => 'mail_safety.admin.inc',
    'type' => MENU_LOCAL_TASK,
  );
  $menu_items['admin/config/development/mail_safety/%mail_safety/send_default'] = array(
    'title' => 'Send Default',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'mail_safety_admin_send_default_form',
      4,
    ),
    'access arguments' => array(
      'use mail safety dashboard',
    ),
    'file' => 'mail_safety.admin.inc',
    'type' => MENU_LOCAL_TASK,
  );
  $menu_items['admin/config/development/mail_safety/%mail_safety/delete'] = array(
    'title' => 'Delete Mail',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'mail_safety_admin_delete_form',
      4,
    ),
    'access arguments' => array(
      'use mail safety dashboard',
    ),
    'file' => 'mail_safety.admin.inc',
    'type' => MENU_LOCAL_TASK,
  );
  $menu_items['admin/config/development/mail_safety/settings'] = array(
    'title' => 'Settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'mail_safety_admin_settings_form',
    ),
    'access arguments' => array(
      'administer mail safety',
    ),
    'file' => 'mail_safety.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => -9,
  );
  return $menu_items;
}