I have a situation where after doing the basic registration the user is redirected to a page where he needs to fill a small form.
iI aim at implementing the hook_user_inserthook_user_insert()
and hook_mentohook_menu()
to do something like this
function registration_user_insert(&$edit, $account, $category){
drupal_goto('splan/'.$edit['uid']);
}
function registration_menu() {
$items['splan/%'] = array(
'title' => 'Select a Plan',
'page callback' => 'drupal_get_form',
'page arguments' => array('selectplan_form'),
'access callback' => TRUE,
'type' => MENU_CALLBACK
);
return $items;
}
In selectplan_form iselectplan_form()
I will define my new form and then, using the uid iuser ID, I would save data into user table.
Now what is happening is after theThe basic user registration form is being submitted, the redirectionuser is redirected to splan/uid is happening, but iI also get the following error.
You are not authorized to access this page.
You are not authorized to access this page.
Now iI have changed permissions to allow anony.anonymous users to create and edit webform, but still the problem existsstill persists.
Please help!!!!!!!!