You are here

function messaging_debug_menu in Messaging 6.2

Same name and namespace in other branches
  1. 5 messaging_debug/messaging_debug.module \messaging_debug_menu()
  2. 6 messaging_debug/messaging_debug.module \messaging_debug_menu()
  3. 6.3 messaging_debug/messaging_debug.module \messaging_debug_menu()

Implementation of hook_menu().

File

messaging_debug/messaging_debug.module, line 22
Simple messaging using html page. Messaging method plug-in

Code

function messaging_debug_menu() {
  $items['user/%user/messagelog'] = array(
    'type' => MENU_LOCAL_TASK,
    'title' => 'Message log',
    'page callback' => 'messaging_debug_user_page',
    'page arguments' => array(
      1,
    ),
    'access callback' => 'messaging_debug_access',
    'access arguments' => array(
      1,
    ),
  );
  $items['admin/messaging/settings/test'] = array(
    'title' => 'Test',
    'description' => 'Test message sending',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'messaging_debug_post_form',
    ),
    'access arguments' => array(
      'administer messaging',
    ),
    'weight' => -10,
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}