how can i use form created with cck in hook_user()?

mirek_ - April 3, 2007 - 22:36

hello

i am trying to solve following problem: during the registration process has each user fill a registration form. because it is really huge one, i am trying to find a way, how to use cck instead of my own. so - the idea of doing that is:

1. create a new content type with cck (lets call it general_info)
2. in my module "somehow" show this form in the hook_user(), when the $op == "register"

later, i have to access the content data, but i can manage it by my own by quering the database with the content type of "general_info", so this could be no problem. the real problem is the point 2 - how to show the form for new entry in the hook_user(). the best way will be to use it as the replacement of the hook_form().

have you any idea, how to do that? maybe it's not possible, but maybe it is (i hope so).

anyway - thanks for any help.

mirek

 
 

Drupal is a registered trademark of Dries Buytaert.