function admin_language_user_insert in Administration Language 7
Implements hook_user_insert().
File
- ./
admin_language.module, line 345 - Makes admin pages be displayed in the administrator's preferred language.
Code
function admin_language_user_insert(&$edit, $account, $category) {
if (!empty($edit['admin_language'])) {
db_insert('admin_language')
->fields(array(
'uid' => $account->uid,
'language' => $edit['admin_language'],
))
->execute();
}
}