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