function nodejs_subscribe_menu in Node.js integration 7
Same name and namespace in other branches
- 6 nodejs_subscribe/nodejs_subscribe.module \nodejs_subscribe_menu()
Implements hook_menu().
File
- nodejs_subscribe/
nodejs_subscribe.module, line 6
Code
function nodejs_subscribe_menu() {
return array(
'nodejs/subscribe/%node' => array(
'title' => 'Subscribe to a node',
'page callback' => 'nodejs_subscribe_subscribe_node',
'page arguments' => array(
2,
),
'access arguments' => array(
'nodejs subscribe to node',
),
'type' => MENU_CALLBACK,
),
'nodejs/unsubscribe/%node' => array(
'title' => 'Subscribe to a node',
'page callback' => 'nodejs_subscribe_unsubscribe_node',
'page arguments' => array(
2,
),
'access arguments' => array(
'nodejs subscribe to node',
),
'type' => MENU_CALLBACK,
),
);
}