function domain_user_init in Domain Access 6.2
Same name and namespace in other branches
- 5 domain_user/domain_user.module \domain_user_init()
Implement hook_init()
We have to do this because we cannot redirect on login.
File
- domain_user/
domain_user.module, line 21 - Creates unique subdomains for registered users.
Code
function domain_user_init() {
if (isset($_SESSION['domain_user'])) {
$domain = domain_user_lookup($_SESSION['domain_user']);
unset($_SESSION['domain_user']);
domain_goto($domain);
}
}