function nodejs_menu in Node.js integration 7
Same name and namespace in other branches
- 6 nodejs.module \nodejs_menu()
Implements hook_menu().
File
- ./
nodejs.module, line 322
Code
function nodejs_menu() {
return array(
'admin/config/nodejs' => array(
'title' => 'Nodejs',
'description' => 'Configure nodejs module.',
'position' => 'left',
'weight' => -20,
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array(
'access administration pages',
),
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
),
'admin/config/nodejs/config' => array(
'title' => 'Configuration',
'description' => 'Adjust node.js settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'nodejs_settings',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'nodejs.admin.inc',
),
'nodejs/message' => array(
'title' => 'Message from Node.js server',
'page callback' => 'nodejs_message_handler',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
),
'nodejs/user/channel/add' => array(
'title' => 'Add a channel to the Node.js server',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'nodejs_add_user_to_channel_form',
),
'access arguments' => array(
'add users to nodejs channels',
),
'type' => MENU_CALLBACK,
),
);
}