views:

11

answers:

1

Is there any way to pass arguments into a function called via drupal_get_form function something like drupal_get_form('form_func', array('arg1' => 1, ...));?

+1  A: 

It's there in the documentation:

"... Any additional arguments are passed on to the functions called by drupal_get_form(), including the unique form constructor function. For example, the node_edit form requires that a node object be passed in here when it is called."

http://api.drupal.org/api/function/drupal_get_form/6

:)

Rimian
Thanks a lot :)
sultan