function nodejs_menu in Node.js integration 6
Same name and namespace in other branches
- 7 nodejs.module \nodejs_menu()
Implements hook_menu().
File
- ./
nodejs.module, line 241
Code
function nodejs_menu() {
return array(
'admin/settings/nodejs' => array(
'title' => 'Nodejs',
'description' => t('Configure nodejs module.'),
'position' => 'left',
'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/settings/nodejs/config' => array(
'title' => t('Configuration'),
'description' => t('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' => t('Message from Node.js server'),
'page callback' => 'nodejs_message_handler',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
),
'nodejs/user/channel/add' => array(
'title' => t('Add a channel to the Node.js server'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'nodejs_add_user_to_channel_form',
),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
),
);
}