function i18n_user in Internationalization 5.3
Same name and namespace in other branches
- 5 i18n.module \i18n_user()
- 5.2 i18n.module \i18n_user()
- 6 i18n.module \i18n_user()
Implementation of hook_user()
Switch to user's language after login
File
- ./
i18n.module, line 309 - Internationalization (i18n) module
Code
function i18n_user($op, &$edit, &$account, $category = NULL) {
if ($op == 'login' && $account->language) {
$_SESSION['language'] = $account->language;
i18n_get_lang($account->language);
}
}