Skip to main content

Home/ Drupal for Developers/ Group items tagged user_save

Rss Feed Group items tagged

Daniel Gregoire

How To Create Users Programmatically In Drupal 6.x - 1 views

  • <?php $newUser = array( 'name' => 'username', 'pass' => 'password', // note: do not md5 the password 'mail' => 'email address', 'status' => 1, 'init' => 'email address' ); user_save(null, $newUser); ?>
  •  
    Create users programmatically. A bit less involved than creating nodes; you just need to populate an array with values, don't need to cast it into an object.
1 - 1 of 1
Showing 20 items per page