You are here

function maillog_menu in Maillog / Mail Developer 7

Same name and namespace in other branches
  1. 6 maillog.module \maillog_menu()

Implements hook_menu().

File

./maillog.module, line 45
Primary hook implementations for the Maillog module.

Code

function maillog_menu() {
  $items = array();
  $items['admin/config/development/maillog'] = array(
    'title' => 'Maillog Settings',
    'description' => 'Configure the settings of Maillog module.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'maillog_admin_settings',
    ),
    'access arguments' => array(
      'administer maillog',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'maillog.admin.inc',
  );
  $items['admin/reports/maillog/view/%maillog_maillog'] = array(
    'title callback' => 'maillog_maillog_title',
    'title arguments' => array(
      4,
    ),
    'description' => 'View a specific Maillog record.',
    'page callback' => 'maillog_maillog_page',
    'page arguments' => array(
      4,
    ),
    'access arguments' => array(
      'view maillog',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'maillog.pages.inc',
  );
  $items['admin/reports/maillog/delete/%maillog_maillog'] = array(
    'title' => 'Delete Maillog record',
    'description' => 'Delete a specific Maillog record.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'maillog_maillog_delete_form',
      4,
    ),
    'access arguments' => array(
      'delete maillog',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'maillog.pages.inc',
  );
  return $items;
}