API page: http://api.drupal.org/api/drupal/core%21includes%21form.inc/function/dru...
The documentation page, right before "Related topics," shows the following text:
would be called via
drupal_form_submit()
as follows:$form_state['values'] = $my_form_values; $form_state['build_info']['args'] = array(&$object); drupal_form_submit('mymodule_form', $form_state);
For example:
After the last line, I guess there should be an example, but the page doesn't show any example. It seems the example has been given, and the page should contain the following text.
would be called via
drupal_form_submit()
as follows, for example:$form_state['values'] = $my_form_values; $form_state['build_info']['args'] = array(&$object); drupal_form_submit('mymodule_form', $form_state);