public function Profile::setUser in Profile 2 7
Same name and namespace in other branches
- 7.2 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()
File
- ./
profile2.module, line 941 - 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;
}