0

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 Answer 1

1

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

:)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.