You are here

public function FacebookPublicationEntity::setUser in Facebook Autopost 7

Sets a new user owning this Facebook publication.

Parameters

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

1 call to FacebookPublicationEntity::setUser()
FacebookPublicationEntity::__construct in fb_autopost_entity/fb_autopost_entity.module
Entity constructor.

File

fb_autopost_entity/fb_autopost_entity.module, line 470
Module implementation file

Class

FacebookPublicationEntity
The class used for Facebook publication entities.

Code

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