I have a User Profile page that loads specific taxonomy terms (associated with a user account and its form, user_profile_form
) to filter specific content with. I've tried to implement these forms independent of any user profile form logic, but its troublesome to work around this logic.
This is further compounded by the fact that all this behavior is essentially split across a ctools_wizard form, since this component ties in a multi-page/multi-form process.
Is there a way I can load in these specific fields, inherited from user_profile_form, into a new form and have those changes save within that form, or is there an entirely separate approach to use here?
$user = user_load($uid);
in your form, then retrieve the term id from$user->field_term[LANGUAGE_NONE][0]['target_id']
or something ?drupal_get_form()
call but it fails to load because that id does not exist.