function form_state_defaults

Retrieves default values for the $form_state array.

Related topics

9 calls to form_state_defaults()
ajax_get_form in includes/ajax.inc
Gets a form submitted via #ajax during an Ajax callback.
drupal_build_form in includes/form.inc
Builds and process a form based on a form id.
drupal_form_submit in includes/form.inc
Retrieves, populates, and processes a form.
FieldAttachOtherTestCase::testFieldAttachForm in modules/field/tests/field.test
Test field_attach_form().
FieldAttachOtherTestCase::testFieldAttachSubmit in modules/field/tests/field.test
Test field_attach_submit().

... See full list

File

includes/form.inc, line 402

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,
        'programmed_bypass_access_check' => TRUE,
        'cache' => FALSE,
        'method' => 'post',
        'groups' => array(),
        'buttons' => array(),
    );
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.