~glennpratt/pressflow/module_implements-cache

« back to all changes in this revision

Viewing changes to includes/form.inc

  • Committer: David Strauss
  • Date: 2010-08-11 21:05:18 UTC
  • mfrom: (1.1.13 6-stable)
  • Revision ID: david@fourkitchens.com-20100811210518-om46mcyxbvoe88v0
MergeĀ DrupalĀ 6.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
// $Id: form.inc,v 1.265.2.33 2010/05/19 15:02:32 goba Exp $
 
2
// $Id: form.inc,v 1.265.2.34 2010/08/06 11:02:49 goba Exp $
3
3
 
4
4
/**
5
5
 * @defgroup forms Form builder functions
248
248
}
249
249
 
250
250
/**
251
 
 * Retrieves a form using a form_id, populates it with $form_state['values'],
252
 
 * processes it, and returns any validation errors encountered. This
253
 
 * function is the programmatic counterpart to drupal_get_form().
 
251
 * Retrieves, populates, and processes a form.
 
252
 *
 
253
 * This function allows you to supply values for form elements and submit a
 
254
 * form for processing. Compare to drupal_get_form(), which also builds and
 
255
 * processes a form, but does not allow you to supply values.
 
256
 *
 
257
 * There is no return value, but you can check to see if there are errors by
 
258
 * calling form_get_errors().
254
259
 *
255
260
 * @param $form_id
256
261
 *   The unique string identifying the desired form. If a function
270
275
 *   For example, the node_edit form requires that a node object be passed
271
276
 *   in here when it is called.
272
277
 * For example:
273
 
 *
274
278
 * @code
275
279
 * // register a new user
276
280
 * $form_state = array();