function flag_get_sid in Flag 6.2
Same name and namespace in other branches
- 7.3 flag.module \flag_get_sid()
- 7.2 flag.module \flag_get_sid()
Get the Session ID for a user. Utilizes the Session API module.
Parameters
$uid: The user ID. If the UID is 0 (anonymous users), then a SID will be returned. SID will always be 0 for any authenticated user.
$create: If the user doesn't yet have a session, should one be created? Defaults to FALSE.
7 calls to flag_get_sid()
- flag_flag::access in ./
flag.inc - Determines whether the user may flag, or unflag, the given content.
- flag_flag::flag in ./
flag.inc - Flags, or unflags, an item.
- flag_flag::get_flagging_record in ./
flag.inc - Returns the flagging record.
- flag_flag::get_user_count in ./
flag.inc - Returns the number of items a user has flagged.
- flag_get_user_flags in ./
flag.module - Find what a user has flagged, either a single node or on the entire site.
File
- ./
flag.module, line 1696 - The Flag module.
Code
function flag_get_sid($uid = NULL, $create = FALSE) {
return flag_set_sid($uid, $create);
}