function form_state_defaults

Retrieves default values for the $form_state array.

Related topics

11 calls to form_state_defaults()
ajax_get_form in drupal/core/includes/ajax.inc
Gets a form submitted via #ajax during an Ajax callback.
drupal_build_form in drupal/core/includes/form.inc
Builds and processes a form for a given form ID.
drupal_form_submit in drupal/core/includes/form.inc
Retrieves, populates, and processes a form.
ElementsTableSelectTest::formSubmitHelper in drupal/core/modules/system/lib/Drupal/system/Tests/Form/ElementsTableSelectTest.php
Helper function for the option check test to submit a form while collecting errors.
FieldAttachOtherTest::testFieldAttachExtractFormValues in drupal/core/modules/field/lib/Drupal/field/Tests/FieldAttachOtherTest.php
Test field_attach_extract_form_values().

... See full list

File

drupal/core/includes/form.inc, line 432
Functions for form and batch generation and processing.

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(),
  );
}