Since 5.x we have a duplicate data structure, right now there is duplication between:

$node->taxonomy_user and $node->taxonomy_user_tags

I am not entirely sure why there should be both arrays that essentially hold the same data...

Comments

alex_b’s picture

Taxonomy User keeps user-related taxonomy terms in an array called taxonomy_user that is as closely as possible modeled after the taxonomy array:

Example:

Array
(
    [0] => stdClass Object
        (
            [tid] => 3
            [vid] => 1
            [uid] => 1
            [nid] => 1
            [name] => admin
            [description] => 
            [weight] => 0
        )

    [1] => stdClass Object
        (
            [tid] => 1
            [vid] => 1
            [uid] => 1
            [nid] => 1
            [name] => latin
            [description] => 
            [weight] => 0
        )

    [2] => stdClass Object
        (
            [tid] => 2
            [vid] => 1
            [uid] => 2
            [nid] => 1
            [name] => testtag
            [description] => 
            [weight] => 0
        )
)

There are two differences to the taxonomy array:

1) The array contains a user id (uid)
2) The array's keys are not the term's tid. This is because taxonomy_user allows two users to categorize the same content with the same term.

(I actually planned the taxonomy_user module for not only free tagging taxonomies. This is why I tried to avoid the word "tag" altogether in the lower level parts of the module code.)

pomliane’s picture

Status: Active » Closed (won't fix)

This version of Taxonomy User is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.