replacing hook_user('form') with hook_form_alter()
hook_user('form') should probably be deprecated in favor of simple hook_form_alter() implementations. one wrinkle though is that hook_user('form') returns its fields in 'categories' which map to different tabs when editing a profile. do people think this multiple tab model is useful? if so, can modules achieve this in some way without help from user.module? Any ideas on how to improve this? -moshe
different tabs when editing a profile. do people think this multiple tab model is useful? if so, can modules achieve this in some way without
Well, visually to the user, yes, the tabs are required. I'd hate to have a hundred fields on one particular user account page, without some sort of categorization or breakdown. From an API standpoint, no, I see no real reason why data has to come in as if it were separated into its categories. Internally, I don't think it makes any difference how the data is organized, and a module implementing a new tab should know what particular fields it expects to work on of the incoming data. -- Morbus Iff ( you, me, eropuri? aawwwwwWWWw yYeahahhHHAhhh ) Technical: http://www.oreillynet.com/pub/au/779 Culture: http://www.disobey.com/ and http://www.gamegrene.com/ icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus
participants (3)
-
Morbus Iff -
Moshe Weitzman -
Samuel Charrington