API/functions/bb set current user

From bbPulp

Jump to: navigation, search
Function
bb_set_current_user
File: /bb-includes/pluggable.php
Class: none
Pluggable: yes
Introduced: revision 354
Deprecated: no

[edit] Description

object bb_set_current_user ( integer $id )

Sets the current user.

[edit] Parameters

id
The id of the user who is to become the current user, setting this parameter to 0 removes the current user if set.

[edit] Return values

Returns an object containing the current users details.

[edit] Actions

bb_set_current_user
called immediately before the user object is returned.

[edit] Plugins that redefine this function

None


Personal tools