Published in: PHP
$form = drupal_retrieve_form('user_register'); $form['#post']['edit']['name'] = 'robo-user'; $form['#post']['mail'] = 'robouser@example.com'; $output = drupal_process_form('user_register');
You need to login to post a comment.
Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
Wicked Cool PHP contains a wide variety of scripts to process credit cards, check the validity of email addresses, template HTML, and serve dynamic images and text.
weitzman on 08/16/06
3 people have marked this snippet as a favorite
Published in: PHP
$form = drupal_retrieve_form('user_register'); $form['#post']['edit']['name'] = 'robo-user'; $form['#post']['mail'] = 'robouser@example.com'; $output = drupal_process_form('user_register');
You need to login to post a comment.