Hi, I am creating a module based in profile.module, basically I need to add some customized fields to the fields I've created with profile.module, the functions I need these new fields to support are not included in profile.module and I don't want to modify profile.module but to extend it using my own module.
I am using hook_user and I'm almost there, however I am having a problem with the category groups.
Using profile.module I've created two categories: Personal and Professional.
Using my new module I am creating my custom fields in the Professional category (it is actually using the same name of category as the one created from profile.module: "Professional") and storing the new data in a separate table.
My problem is that I'm seeing two "groups" of Professional category in my form (by "group" I'm referring to a html fieldset block with "Professional" in the legend tag), both when editing (using $op='form' in hook_user) and when registering ($op='register' in hook_user).
One group of fields contains the fields created by profile.module and the other group contains the fields created by my module, but being in the same category (at least the category name is the same) they should be grouped in the same fieldset block.
I need to join these two groups, in fact I need to be able to control where my new module fields are inserted in the form, for example:
field 1 (from profile.module)