cod*_*ama 1 drupal
如何在用户登录时将自己的数据加载到$ user对象上?
gap*_*ple 7
hook_user()可能具有您需要的功能
custommodule_user($op, &$edit, &$account, $category = NULL){ global $user; if($op=='login'){ $user->custommodule['data']='some stuff'; } }
归档时间:
16 年,4 月 前
查看次数:
943 次
最近记录:
13 年,1 月 前