You are here

public function Entityform::setUser in Entityform 7

Same name and namespace in other branches
  1. 7.2 entityform.module \Entityform::setUser()

Sets a new user who submitted this form.

Parameters

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

File

./entityform.module, line 1149
Module for the Entityform Entity - a starting point to create your own Entity and associated administration interface

Class

Entityform
The class used for entityform entities

Code

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