- Patch #804870 by CrookedNumber: docblock for drupal_form_submit() was outdated.

merge-requests/26/head
Dries Buytaert 2010-06-10 07:00:03 +00:00
parent 23582a5e91
commit e960a8e233
1 changed files with 0 additions and 9 deletions

View File

@ -483,15 +483,6 @@ function form_state_keys_no_cache() {
* $form_state['values']['pass']['pass2'] = 'password';
* $form_state['values']['op'] = t('Create new account');
* drupal_form_submit('user_register_form', $form_state);
* // Create a new node
* $form_state = array();
* module_load_include('inc', 'node', 'node.pages');
* $node = array('type' => 'story');
* $form_state['values']['title'] = 'My node';
* $form_state['values']['body'] = 'This is the body text!';
* $form_state['values']['name'] = 'robo-user';
* $form_state['values']['op'] = t('Save');
* drupal_form_submit('story_node_form', $form_state, (object) $node);
* @endcode
*/
function drupal_form_submit($form_id, &$form_state) {