You are here

function _webform_defaults_email in Webform 5.2

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

Create a default email component.

File

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

Code

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