You are here

function space_user::load in Spaces 7.3

Same name and namespace in other branches
  1. 6.3 spaces_user/plugins/space_user.inc \space_user::load()
  2. 7 spaces_user/plugins/space_user.inc \space_user::load()

Override of load(). Load the user account object for this space and bail if it can't be loaded.

Overrides space::load

File

spaces_user/plugins/space_user.inc, line 11

Class

space_user
User integration for Spaces.

Code

function load() {
  parent::load();
  $account = user_load($this->id);
  if ($account) {
    $this->user = $account;
    return TRUE;
  }
  return FALSE;
}