LJ::Tags::create_usertag

LJ::Tags::create_usertag — Creates tags for a user, returning the keyword ids allocated.

Use

LJ::Tags::create_usertag(uobj, kw, opts);

Arguments

  • uobj. User object to create tag on.

  • kw. Tag string (comma separated list of tags) to create.

  • opts. Optional; hashref, possible keys being 'display' and value being whether or not this tag should be a display tag and 'parenttagid' being the tagid of a parent tag for hierarchy. 'err_ref' optional key should be a ref to a scalar where we will store text about errors.

Source:

cgi-bin/LJ/Tags.pm

Returns:

undef on error, else a hashref of { keyword => tagid } for each keyword defined