LJ::set_interests

LJ::set_interests — Change a user's interests.

Use

LJ::set_interests(u, old, new);

Arguments

  • u. A hashref of a row from the user table, sometimes called a "user object". Although only initially a row from the user table, gets a lot of tacked onto it from various other LJ API functions.

  • old. hashref of old interests (hashing being interest => intid)

  • new. listref of new interests

Source:

cgi-bin/LJ/User.pm

Returns:

1 on success, undef on failure