Posted By

weitzman on 08/16/06


Tagged

textmate drupal


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

panatlantica
vali29
DanS42
troynt
roobarb


programmtic user registration


 / Published in: PHP
 

  1. $form = drupal_retrieve_form('user_register');
  2. $form['#post']['edit']['name'] = 'robo-user';
  3. $form['#post']['mail'] = '[email protected]';
  4. $output = drupal_process_form('user_register');

Report this snippet  

You need to login to post a comment.