php - Drupal Register user upon node create -


how can add user register form node create form in drupal? there module http://drupal.org/project/inline_registration , has bugs. think saw alternative one, cant find now.

beware many security problems possible when giving anonymous users access node creation. said, here thoughts.

if can live without having form registration on same page, easier solution redirect user node create form after successful login. amounts perhaps 1 line of code (more if want redirect on conditions - e.g. user registers type of account). way can use built-in validation , submit handlers of user module.

if must have both on same page, use hook_form_form_id_alter, , output user registration form fields if $form['#node']->nid isn't set. sure validate input well.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -