Is it possible to manually call hook_form WITH a valid $form_state from hook_user?



jefflane’s picture

To answer my own question, you can use the hook_form_alter which gives you access to the $form and $form_state.

function jeff_form_alter(&$form, &$form_state, $form_id)
	if ($form_id =='user_register')
		jeff_stuff(&$form, $form_state);						

Cool thing is, in the function that builds your form you can use the ahah helper module (which is why I wanted to do this in the first place) and create some really neat forms.