function nodejs_notify_menu in Node.js integration 7
Same name and namespace in other branches
- 6 nodejs_notify/nodejs_notify.module \nodejs_notify_menu()
Implements hook_menu().
File
- nodejs_notify/
nodejs_notify.module, line 40
Code
function nodejs_notify_menu() {
return array(
'admin/config/nodejs/nodejs_notify' => array(
'title' => 'Node.js Notification Settings',
'description' => '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/config/nodejs/nodejs_notify/settings' => array(
'title' => 'Node.js Notification Settings',
'description' => 'Settings for node.js notify.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'nodejs_notify_settings_form',
),
'access arguments' => array(
'administer nodejs_notify configuration',
),
),
'admin/config/nodejs/nodejs_notify/broadcast' => array(
'title' => 'System-wide broadcast',
'description' => '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(
'send nodejs broadcast',
),
),
);
}