开发者

drupal how to show custom profile field

i added a profile field to registration开发者_开发问答 form. how to show in edit registration (account) form . i wrote a module for edit account in that $form [function editregistration_form_user_profile_form_alter(&$form, &$form_state) ] doesn't contain the values of custom profile fields.


If you are using the core Profile module, profile fields have a setting that you can check off that say 'Show in registration form' when you edit them.


The name of that function looks a bit funny. What's your module called? And the form id?

There's a bit about naming hook_form_alter functions in the 'Writing the Module' section of this: http://www.chromaticsites.com/blog/drupal-tutorial-form-overrides-and-element-specific-validations/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜