function drupalchat_menu in DrupalChat 6.2
Same name and namespace in other branches
- 6 drupalchat.module \drupalchat_menu()
- 7.2 drupalchat.module \drupalchat_menu()
- 7 drupalchat.module \drupalchat_menu()
Implementaiton of hook_menu()
File
- ./
drupalchat.module, line 192 - Module code for DrupalChat.
Code
function drupalchat_menu() {
$items['admin/settings/drupalchat'] = array(
'title' => 'DrupalChat',
'description' => 'Administer DrupalChat',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'drupalchat_settings_form',
),
'access arguments' => array(
'administer drupalchat',
),
'file' => 'drupalchat.admin.inc',
);
$items['admin/settings/drupalchat/module-settings'] = array(
'title' => 'Module Settings',
'description' => 'iFlyChat Module Settings',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 11,
);
$items['admin/settings/drupalchat/app-settings'] = array(
'title' => 'App Settings',
'description' => 'iFlyChat App Settings',
'type' => MENU_LOCAL_TASK,
'page callback' => 'drupalchat_app_settings',
'access arguments' => array(
'administer drupalchat',
),
'file' => 'drupalchat.admin.inc',
'weight' => 12,
);
$items['drupalchat/poll'] = array(
'page callback' => 'drupalchat_poll',
'access arguments' => array(
'access drupalchat',
),
'type' => MENU_CALLBACK,
);
$items['drupalchat/send'] = array(
'page callback' => 'drupalchat_send',
'access arguments' => array(
'access drupalchat',
),
'type' => MENU_CALLBACK,
);
$items['drupalchat/auth'] = array(
'page callback' => 'drupalchat_ex_auth',
'access arguments' => array(
'access drupalchat',
),
'type' => MENU_CALLBACK,
);
$items['drupalchat/change-guest-name'] = array(
'page callback' => 'drupalchat_change_guest_name',
'access arguments' => array(
'access drupalchat',
),
'type' => MENU_CALLBACK,
);
$items['drupalchat/status'] = array(
'page callback' => 'drupalchat_status',
'access arguments' => array(
'access drupalchat',
),
'type' => MENU_CALLBACK,
);
$items['drupalchat/ur-autocomplete'] = array(
'page callback' => '_drupalchat_ur_autocomplete',
'access arguments' => array(
'access drupalchat',
),
'type' => MENU_CALLBACK,
);
$items['drupalchat/messages'] = array(
'title' => 'Chat Messages',
'type' => MENU_NORMAL_ITEM,
'page callback' => 'drupalchat_get_messages',
'access callback' => 'drupalchat_verify_access_callback',
'access arguments' => array(
'or',
array(
'access drupalchat own logs',
'access drupalchat all logs',
),
),
);
$items['drupalchat/mobile-chat'] = array(
'page callback' => 'drupalchat_mobile_chat',
'access arguments' => array(
'access drupalchat',
),
'type' => MENU_CALLBACK,
);
$items['drupalchat/messages/inbox'] = array(
'title' => 'Inbox',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['drupalchat/messages/message/%drupalchatmsgid'] = array(
'title' => 'View Message',
'type' => MENU_LOCAL_TASK,
'page callback' => 'drupalchat_get_messages_specific',
'access callback' => 'drupalchat_verify_access_callback',
'access arguments' => array(
'or',
array(
'access drupalchat own logs',
'access drupalchat all logs',
),
),
'page arguments' => array(
3,
),
);
return $items;
}