You are here

function better_watchdog_ui_entity_menu in Better Watchdog UI 7.3

Same name and namespace in other branches
  1. 8 better_watchdog_ui_entity/better_watchdog_ui_entity.module \better_watchdog_ui_entity_menu()
  2. 7 better_watchdog_ui_entity/better_watchdog_ui_entity.module \better_watchdog_ui_entity_menu()
  3. 7.2 better_watchdog_ui_entity/better_watchdog_ui_entity.module \better_watchdog_ui_entity_menu()

Implements hook_menu().

File

better_watchdog_ui_entity/better_watchdog_ui_entity.module, line 56
Provides a basic wrapper to database log entries, so they can be accessed as entities.

Code

function better_watchdog_ui_entity_menu() {
  $items[BETTER_WATCHDOG_UI_DETAIL_PATH . '/%better_watchdog_ui_watchdog'] = array(
    'title callback' => 'better_watchdog_ui_watchdog_title',
    'title arguments' => array(
      BETTER_WATCHDOG_UI_PARAMETER_POSITION,
    ),
    'page callback' => 'better_watchdog_ui_watchdog_view',
    'page arguments' => array(
      BETTER_WATCHDOG_UI_PARAMETER_POSITION,
    ),
    'access arguments' => array(
      'access site reports',
    ),
    'file' => 'better_watchdog_ui_entity.pages.inc',
  );
  $items[BETTER_WATCHDOG_UI_DETAIL_PATH . '/%better_watchdog_ui_watchdog/view'] = array(
    'title' => 'View',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items[BETTER_WATCHDOG_UI_DETAIL_PATH . '/%better_watchdog_ui_watchdog/delete'] = array(
    'title callback' => 'better_watchdog_ui_watchdog_title',
    'title arguments' => array(
      BETTER_WATCHDOG_UI_PARAMETER_POSITION,
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'better_watchdog_ui_watchdog_delete_form',
      BETTER_WATCHDOG_UI_PARAMETER_POSITION,
    ),
    'access arguments' => array(
      'access site reports',
    ),
    'file' => 'better_watchdog_ui_entity.pages.inc',
  );
  return $items;
}