tags:

views:

91

answers:

1

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

related questions