Anonymous user form submission drupal 7 -
i have situation after doing basic registration user redirected page needs fill small form.
i aim @ implementing hook_user_insert , hook_menu this
function registration_user_insert(&$edit, $account, $category){ drupal_goto('splan/'.$edit['uid']); } function registration_menu() { $items['splan/%'] = array( 'title' => 'select plan', 'page callback' => 'drupal_get_form', 'page arguments' => array('selectplan_form'), 'access callback' => true, 'type' => menu_callback ); return $items; } in selectplan_form define new form , using uid save data user table.
now happening after basic user registration form being submitted redirection splan/uid happening following error.
you not authorized access page. now have changed permissions allow anony. users create , edit webform still problem exists.
please help!!!!!!!!
try removing 'access callback' => true, , add 'access arguments' => array('access content'), instead.
perhaps forgot clear cache?
Comments
Post a Comment