You are here

public function Profile::setUser in Profile 2 7.2

Same name and namespace in other branches
  1. 7 profile2.module \Profile::setUser()

Sets a new user owning this profile.

Parameters

$account: The user account object or the user account id (uid).

1 call to Profile::setUser()
Profile::__construct in ./profile2.module

File

./profile2.module, line 1187
Support for configurable user profiles.

Class

Profile
The class used for profile entities.

Code

public function setUser($account) {
  $this->uid = is_object($account) ? $account->uid : $account;
}