I am unable to redirect back to the page after executing the user_save
. Following is my code snippet:
//if the response code is failed rollback the user changes and redirect
if ($results['code']!=200) {
user_save(NULL,$account);
drupal_goto("/admin/people");
}
user_save
should be an array and not the object. Anyways it is good that you figured it out yourself. Please answer your own question, and accept it after a day so that the question gets out of the unanswered questions list.