You are here

function mail_logger_menu in Mail Logger 7

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

Implements hook_menu().

File

./mail_logger.module, line 32
Mail Logger module logs all outgoing mail that passes through the drupal_mail function.

Code

function mail_logger_menu() {
  $items = array();
  $items['admin/reports/mail-logger'] = array(
    'title' => 'Outgoing Mail Log',
    'description' => 'View Mails that have been sent from this site.',
    'page callback' => 'mail_logger_overview',
    'access arguments' => array(
      'access mail logger',
    ),
    'file' => 'mail_logger.pages.inc',
  );
  $items['admin/reports/mail-logger/logs'] = array(
    'title' => 'Entries',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/reports/mail-logger/mail/%'] = array(
    'title' => 'Outgoing Mail Log Entry',
    'description' => 'View information about a single logged mail entry',
    'page callback' => 'mail_logger_read_mail',
    'page arguments' => array(
      4,
    ),
    'access arguments' => array(
      'access mail logger',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'mail_logger.pages.inc',
  );
  $items['admin/reports/mail-logger/settings'] = array(
    'title' => 'Settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'mail_logger_admin_settings_form',
    ),
    'access arguments' => array(
      'administer modules',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'mail_logger.admin.inc',
  );
  return $items;
}