function community_tags_community_tags_json_alter in Community Tags 6.2
Default json handler adds an updated cloud to the response.
Related topics
File
- ./
community_tags.ajax.inc, line 55 - community_tags.ajax.inc
Code
function community_tags_community_tags_json_alter(&$json, $node, $user, $vid) {
if (empty($_POST['source']) || $_POST['source'] == 'undefined') {
$display_handler = _community_tags_get_display_handler($vid, $node->type);
$json['cloud'] = call_user_func($display_handler['fn'], $node, $vid);
$json['update_tags'] = TRUE;
}
}