function nodejs_notify_menu in Node.js integration 6
Same name and namespace in other branches
- 7 nodejs_notify/nodejs_notify.module \nodejs_notify_menu()
Implements hook_menu().
File
- nodejs_notify/
nodejs_notify.module, line 32
Code
function nodejs_notify_menu() {
return array(
'admin/settings/nodejs/nodejs_notify' => array(
'title' => t('Node.js Notification Settings'),
'description' => t('Settings for node.js notify.'),
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array(
'access administration pages',
),
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
'position' => 'left',
'weight' => 1,
),
'admin/settings/nodejs/nodejs_notify/settings' => array(
'title' => t('Node.js Notification Settings'),
'description' => t('Settings for node.js notify.'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'nodejs_notify_settings_form',
),
'access arguments' => array(
'Administer Node.js Notification Configuration',
),
),
'admin/settings/nodejs/nodejs_notify/broadcast' => array(
'title' => t('System-wide broadcast'),
'description' => t('Do a system-wide broadcast notification that all users see.'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'nodejs_notify_broadcast_form',
),
'access arguments' => array(
'Perform system-wide broadcasts.',
),
),
);
}