function realtime_taxonomy_action in Node.js integration 6
Callback to handle taxonomy notifications.
File
- nodejs_actions/
nodejs_actions.module, line 242
Code
function realtime_taxonomy_action($comment, $context = array()) {
$term = taxonomy_get_term(arg(3));
$name = $term->name;
$voc = taxonomy_vocabulary_load($term->vid);
$vocabulary = $voc->name;
$link = l($name, 'taxonomy/term/' . $term->tid);
$body = t('This term !link in the vocabulary !voca has been %action.', array(
'!link' => $link,
'!voca' => $vocabulary,
'%action' => t($context['op']),
));
nodejs_actions_enqueue_message(t('Taxonomy activity'), $body);
}