form_state_defaults

  1. drupal
    1. drupal7
Versionen
drupal7 form_state_defaults()

Retrieve default values for the $form_state array.

Verwandte Themen

▾ 5 functions call form_state_defaults()

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().
field_add_more_js in modules/field/field.form.inc
Menu callback for AHAH addition of new empty widgets.
FormsElementsTableSelectFunctionalTest::formSubmitHelper in modules/simpletest/tests/form.test
Helper function for the option check test to submit a form while collecting errors.
form_ahah_callback in includes/form.inc
Menu callback for AHAH callbacks through the #ahah['callback'] FAPI property.

Code

includes/form.inc, line 217

<?php
function form_state_defaults() {
  return array(
    'storage' => NULL,
    'submitted' => FALSE,
    'method' => 'post',
    'programmed' => FALSE,
    'groups' => array(),
  );
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen