summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/form.inc9
1 files changed, 0 insertions, 9 deletions
diff --git a/includes/form.inc b/includes/form.inc
index 3cd6bca81..445a911a7 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -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) {