You are here:
» Drupal User_save?
Drupal user_save?
This Comment will be submitted for moderation and will not be accessible to other users until it has been approved.
How do we use drupal_save function? Can somebody please elaborate?
Created by Abdul Abdalllah

2 years 15 weeks ago
Tags:
It is quite simple. see following:
<?php
user_save($account, array('mail'=>'abc@gmail.com');
?>
if $account is null, a new user is created else mail information is updated for $account. I hope this helps.
Actually, if you want to create a new user account, correct syntax is:
<php><?php
?> </php>
missing a closing ")"...
Post Comment