By cachobong on
Hello! Is there a way i can pass extra variables/items into drupal_get_form('user_register');? there are some values that are needed to be there with input type hidden.
Hello! Is there a way i can pass extra variables/items into drupal_get_form('user_register');? there are some values that are needed to be there with input type hidden.
Comments
http://api.drupal.org/api/fun
http://api.drupal.org/api/function/drupal_get_form/6 states that additional arguments get passed to the form constructor.
example:
$x, $y, $z get passed to the function that creates the form.
Hi! Thanks for the reply. My
Hi! Thanks for the reply. My next question is how do i assign $x, $y or $z to a field in my Form?
thanks!
scrap that..follow up
scrap that..follow up question i have the function
it is called by:
but it keeps on displaying:
warning: Missing argument 3 for my_hook_form_user_register_alter() ...
What's wrong?
bump!
bump!
The declaration of your
The declaration of your function should be
Only the original form function gets the extra parameters.
so how do i get the extra
so how do i get the extra parameters?
func_get_args()?What are you actually trying
What are you actually trying to do?
pass extra parameters into
pass extra parameters into the alter form..:)