function drupalchat_menu in DrupalChat 7
Same name and namespace in other branches
- 6.2 drupalchat.module \drupalchat_menu()
- 6 drupalchat.module \drupalchat_menu()
- 7.2 drupalchat.module \drupalchat_menu()
Implements hook_menu().
File
- ./
drupalchat.module, line 241 - Module code for DrupalChat.
Code
function drupalchat_menu() {
// Administration pages.
$items['admin/config/drupalchat'] = array(
'title' => 'DrupalChat',
'description' => 'Administer DrupalChat.',
'position' => 'left',
'weight' => -10,
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array(
'access administration pages',
),
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
);
$items['admin/config/drupalchat/configuration'] = array(
'title' => 'Configure',
'description' => 'Configure DrupalChat module.',
'page callback' => 'drupal_get_form',
'access arguments' => array(
'administer drupalchat',
),
'page arguments' => array(
'drupalchat_settings_form',
),
'file' => 'drupalchat.admin.inc',
'weight' => 10,
);
/*$items['admin/config/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['drupalchat/mobile-auth'] = array(
'page callback' => 'drupalchat_mobile_auth',
'access arguments' => array(
'access content',
),
'file' => 'drupalchat.mobileauth.inc',
);
$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/status'] = array(
'page callback' => 'drupalchat_status',
'access arguments' => array(
'access drupalchat',
),
'type' => MENU_CALLBACK,
);
$items['drupalchat/channel/add'] = array(
'page callback' => 'drupalchat_channel_add',
'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/ur-autocomplete'] = array(
'page callback' => '_drupalchat_ur_autocomplete',
'access arguments' => array(
'access drupalchat',
),
'type' => MENU_CALLBACK,
);
$items['drupalchat/user-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 arguments' => array(
'access drupalchat own logs',
),
);
$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 arguments' => array(
'access drupalchat own logs',
),
'page arguments' => array(
3,
),
);
$items['drupalchat/send-offline-message'] = array(
'page callback' => 'drupalchat_send_offline_message',
'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/mobile-chat'] = array(
'page callback' => 'drupalchat_mobile_chat',
'access arguments' => array(
'access drupalchat',
),
'type' => MENU_CALLBACK,
);
$items['drupalchat/thread-history'] = array(
'page callback' => 'drupalchat_get_thread_history',
'access arguments' => array(
'access drupalchat',
),
'type' => MENU_CALLBACK,
);
return $items;
}