Take this:

user_save(new stdClass(),
  array('name' => 'wbrtech',
 'pass' => 'music123#',
 'mail' => 'tech@warnerreprise.com',
 'status' => 1));

And turn it into a wrapper function. Pass in name, mail, pwd (optional), status (optional). Should probably return the ID# of the user.

Credit for code goes to shaber

Comments

boris mann’s picture

Version: » 5.x-1.x-dev

Done.

boris mann’s picture

Status: Active » Fixed

Let's try that again.

Anonymous’s picture

Status: Fixed » Closed (fixed)