LJ::want_userid — Returns userid when passed either userid or the user hash. Useful to functions that want to accept either. Forces its return value to be a number (for safety).
LJ::want_userid
(userid);
userid. Either a userid, or a user hash with the userid in its 'userid' key.
cgi-bin/ljlib.pl
The userid, guaranteed to be a numeric value.