You are here

function domain_user_set in Domain Access 7.3

Emsures that a user object has been loaded properly.

Parameters

$account: An account object.

11 calls to domain_user_set()
DomainUserHandler::prepare in ./domain.migrate.inc
domain_content_list in domain_content/domain_content.admin.inc
List the available domains for this user.
domain_form_alter in ./domain.module
Implements hook_form_alter().
domain_node_access in ./domain.module
Implements hook_node_access().
domain_node_access_create in ./domain.module
Checks if a user can create content of a specific type on the current domain.

... See full list

File

./domain.module, line 563
Core module functions for the Domain Access suite.

Code

function domain_user_set($account) {
  if (!isset($account->domain_user)) {
    $accounts = array(
      $account->uid => $account,
    );
    domain_user_load($accounts);
  }
}