You are here

function mail_logger_menu in Mail Logger 5

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

Implementation of hook_menu().

File

./mail_logger.module, line 14

Code

function mail_logger_menu($may_cache) {
  $items = array();
  if (!$may_cache) {
    $items[] = array(
      'path' => 'admin/logs/mail-logger',
      'title' => t('Outgoing Mail log entries'),
      'description' => t('View Mails that have been sent from this site.'),
      'callback' => 'mail_logger_overview',
      'weight' => -1,
      'access' => user_access('access mail logger'),
    );
    $items[] = array(
      'path' => 'admin/logs/mail-logger/mail',
      'title' => t('Outgoing Mail log entries'),
      'description' => t('View information about a single logged mail entry'),
      'callback' => 'mail_logger_read_mail',
      'weight' => -1,
      'access' => user_access('access mail logger'),
      'type' => MENU_CALLBACK,
    );
  }
  return $items;
}