You are here

function domain_user_load in Domain Access 7.3

Same name and namespace in other branches
  1. 7.2 domain.module \domain_user_load()

Implements hook_user_load().

Attached domain_id records to all registering users. These are used to determine which 'domain_editor' group that users with the 'edit domain content' and 'delete domain content' permissions are in.

1 call to domain_user_load()
domain_user_set in ./domain.module
Emsures that a user object has been loaded properly.

File

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

Code

function domain_user_load($users) {
  foreach ($users as $uid => $account) {
    $users[$uid]->domain_user = domain_get_user_domains($account);
  }
}