I added custom column in users table, i would like to use user_save to create new user programmatically. How can i do that? This code doesn't work for custom columns:
$new_user = array(
'name' => 'Foo',
'pass' => $pwd,
'mail' => $email,
'signature_format' => 'filtered_html',
'status' => 1,
'language' => 'en',
'timezone' => 'Europe/Berlin',
'init' => $email,
'custom' => $custom_string,
'roles' => array(
DRUPAL_AUTHENTICATED_RID => 'authenticated user',
$role->rid => $role->name,
),
);
$new_account = user_save(NULL, $new_user);
Everything except custom gets inserted, if i am not wrong it's default drupal columns for each user's table. Thanks