开发者

Save date with user_save

Can anyone tell me how to save a user´s birth date with user_save? I 开发者_如何学编程have day, month and year separatedly.


what version of drupal are you using? Mentioning Dru version helps to give you better explanations.

anyway, as first you should create Date of Birth field via profile module (it allows to add custom fields to user profiles), and then pass this field to user_save in second argument. See more http://api.drupal.org/api/drupal/modules--user--user.module/function/user_save/6 or http://api.drupal.org/api/drupal/modules--user--user.module/function/user_save/ for Drupal 7.

Regards

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜