I've made a simple script to remove the beta box.
Link
Greasemonkey script to remove "People Who Dugg This Also Dugg"
Posted by
twig
at
9:48 AM
Thursday, January 29, 2009
Batch migration of users into Drupal
Posted by
twig
at
12:16 PM
Sunday, January 25, 2009
The $new_user array can contain any field with the name matching a field in the "users" database table.
Once the data is filled, call user_save() to create the user.
Be sure to check "$new_user_object afterwards != FALSE" in case the registration process failed.
This code was checked and working with Drupal 6.x.
$new_user = array("mail" can be omitted, but the important one is the username.
'name' => $username,
'pass' => $password,
'mail' => $email,
'status' => true,
);
Once the data is filled, call user_save() to create the user.
$new_user_object = user_save(NULL, $new_user);The important part is to give the first parameter NULL, as we want to be creating new users.
Be sure to check "$new_user_object afterwards != FALSE" in case the registration process failed.
This code was checked and working with Drupal 6.x.
Subscribe to:
Posts (Atom)
