I'm a newbie module developer - still trying to wrap my head around everything - and had a question that so far I haven't found a straightforward answer/example for:
Can someone point me to some example code for specifying the addition of user profile fields upon the install of a module? I'm assuming that this would just be another call housed within the .install file. I did find one example, but testing it out kind of borked my site: everything just disappeared, so I really didn't have any errors or info to help with debugging what the issue might be.
I'm sure there's a standard hook or something to help with this (?), but so far my searching hasn't turned up too much. Any assistance you could provide would be greatly appreciated!
Comments
Hacking forms or direct insert
It looks like the only thing that profile itself provides is a form submit function in profile.admin.inc. Emulating forms is how patterns creates site configurations. I'm not too much of a fan of going that far, and would find it easier to insert into the respective table directly (profile_fields).
I see...
Thanks for the heads-up, I'll definitely check into that more. Seems like something that would be a good candidate for a "hook" though.