You are here

function nodejs_subscribe_unsubscribe_node in Node.js integration 6

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

Page callback for unsubscribing to a node.

1 string reference to 'nodejs_subscribe_unsubscribe_node'
nodejs_subscribe_menu in nodejs_subscribe/nodejs_subscribe.module
Implements hook_menu().

File

nodejs_subscribe/nodejs_subscribe.module, line 212

Code

function nodejs_subscribe_unsubscribe_node($node) {
  global $user;
  nodejs_subscribe_delete($node, $user->uid);
  drupal_set_message(t("You have been unsubscribed from '%node_title'.", array(
    '%node_title' => $node->title,
  )));
  drupal_goto('node/' . $node->nid);
}