function mail_logger_menu in Mail Logger 6
Same name and namespace in other branches
- 5 mail_logger.module \mail_logger_menu()
- 7 mail_logger.module \mail_logger_menu()
Implementation of hook_menu().
File
- ./
mail_logger.module, line 17 - 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 entries',
'description' => 'View Mails that have been sent from this site.',
'page callback' => 'mail_logger_overview',
'access arguments' => array(
'access mail logger',
),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/reports/mail-logger/overview'] = array(
'title' => 'Overview',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/reports/mail-logger/clear'] = array(
'title' => 'Clear',
'description' => 'Clear Mail log',
'page callback' => 'mail_logger_clear',
'access arguments' => array(
'access mail logger',
),
'type' => MENU_LOCAL_TASK,
'weight' => 1,
);
$items['admin/reports/mail-logger/mail/%'] = array(
'title' => 'Outgoing Mail log entries',
'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,
);
return $items;
}