Skip navigation
Help

form_state_defaults

7 form.inc form_state_defaults()

Retrieve default values for the $form_state array.

Related topics

7 calls to form_state_defaults()

File

drupal/includes/form.inc, line 368

Code

function form_state_defaults() {
  return array(
    'rebuild' => FALSE, 
    'rebuild_info' => array(), 
    'redirect' => NULL,
    // @todo 'args' is usually set, so no other default 'build_info' keys are
    //   appended via += form_state_defaults(). 
    'build_info' => array(
      'args' => array(), 
      'files' => array(),
    ), 
    'temporary' => array(), 
    'submitted' => FALSE, 
    'executed' => FALSE, 
    'programmed' => FALSE, 
    'cache' => FALSE, 
    'method' => 'post', 
    'groups' => array(), 
    'buttons' => array(),
  );
}