Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293925

Remove any reference to not existing forms in FormBuilderInterface::submitForm() documentation

$
0
0

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);

Viewing all articles
Browse latest Browse all 293925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>