You are here

function realtime_user_relationship_cancel_action in Node.js integration 6

Callback to handle nodejs notification when a user relationship has been canceled.

File

nodejs_actions/nodejs_actions.module, line 404

Code

function realtime_user_relationship_cancel_action($hook, $context = array()) {
  $link = l($context['user']->name, 'user/' . $context['user']->uid);
  $group = l($context['node']->title, 'node/' . $context['node']->nid);
  $body = t('This user !link has been approved for membership to the group !group.', array(
    '!link' => $link,
    '!group' => $group,
  ));
  nodejs_actions_enqueue_message(t('Group activity'), $body);
}