You are here

function nodejs_subscribe_menu in Node.js integration 6

Same name and namespace in other branches
  1. 7 nodejs_subscribe/nodejs_subscribe.module \nodejs_subscribe_menu()

Implements hook_menu().

File

nodejs_subscribe/nodejs_subscribe.module, line 92

Code

function nodejs_subscribe_menu() {
  return array(
    'nodejs/subscribe/%node' => array(
      'title' => t('Subscribe to a node'),
      'page callback' => 'nodejs_subscribe_subscribe_node',
      'page arguments' => array(
        2,
      ),
      'access arguments' => array(
        'Subscribe to realtime content updates',
      ),
      'type' => MENU_CALLBACK,
    ),
    'nodejs/unsubscribe/%node' => array(
      'title' => t('Subscribe to a node'),
      'page callback' => 'nodejs_subscribe_unsubscribe_node',
      'page arguments' => array(
        2,
      ),
      'access arguments' => array(
        'Subscribe to realtime content updates',
      ),
      'type' => MENU_CALLBACK,
    ),
  );
}