form_state_defaults

Versions
7
form_state_defaults()

Retrieve default values for the $form_state array.

Related topics

▾ 3 functions call form_state_defaults()

ajax_get_form in includes/ajax.inc
Get a form submitted via #ajax during an AJAX callback.
drupal_build_form in includes/form.inc
Build and process a form based on a form id.
drupal_form_submit in includes/form.inc
Retrieves a form using a form_id, populates it with $form_state['values'], processes it, and returns any validation errors encountered. This function is the programmatic counterpart to drupal_get_form().

Code

includes/form.inc, line 269

<?php
function form_state_defaults() {
  return array(
    'args' => array(),
    'rebuild' => FALSE,
    'redirect' => NULL,
    'build_info' => array(),
    'storage' => array(),
    'submitted' => FALSE,
    'programmed' => FALSE,
    'cache'=> FALSE,
    'method' => 'post',
    'groups' => array(),
  );
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.