function domain_user_load in Domain Access 7.2
Same name and namespace in other branches
- 7.3 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.
File
- ./
domain.module, line 378 - 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);
}
}