function community_tags_get_user_node_tags_and_terms in Community Tags 6.2
Retrieve list of tags for a given node that belong to a user.
2 calls to community_tags_get_user_node_tags_and_terms()
- community_tags_get_user_node_tags in ./
community_tags.module - Retrieve list of tags for a given node that belong to a user.
- community_tags_taxonomy_node_save in ./
community_tags.module - Save community_tags term associations and counts for a given node.
File
- ./
community_tags.module, line 1140 - Implements community tagging of nodes using a specific vocabulary for Drupal v6.x
Code
function community_tags_get_user_node_tags_and_terms($user, $node, $vid) {
$tags_and_terms = array(
'terms' => array(),
'new tags' => array(),
);
$tags_and_terms['terms'] = _community_tags_get_node_user_vid_tags($node, $user, $vid);
// allow other modules to have a say
drupal_alter('community_tags_get_user_node_tags', $tags_and_terms, $user, $node, $vid);
return $tags_and_terms;
}