You are here

function _webform_defaults_textfield in Webform 5.2

Same name and namespace in other branches
  1. 6.3 components/textfield.inc \_webform_defaults_textfield()
  2. 6.2 components/textfield.inc \_webform_defaults_textfield()
  3. 7.4 components/textfield.inc \_webform_defaults_textfield()
  4. 7.3 components/textfield.inc \_webform_defaults_textfield()

Create a default textfield component.

File

components/textfield.inc, line 11
Webform module textfield component.

Code

function _webform_defaults_textfield() {
  return array(
    'name' => '',
    'form_key' => NULL,
    'pid' => 0,
    'weight' => 0,
    'value' => '',
    'mandatory' => 0,
    'email' => 1,
    'extra' => array(
      'width' => '',
      'maxlength' => '',
      'field_prefix' => '',
      'field_suffix' => '',
      'disabled' => 0,
      'description' => '',
      'attributes' => array(),
    ),
  );
}