programmtic user registration


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.