How would I go about loading my own data onto the $user object upon login of a user?
+5
A:
hook_user() probably has the functionality you need
custommodule_user($op, &$edit, &$account, $category = NULL){
global $user;
if($op=='login'){
$user->custommodule['data']='some stuff';
}
}
GApple
2009-09-09 22:11:52