You are here

function _webform_defaults_date in Webform 7.4

Same name and namespace in other branches
  1. 5.2 components/date.inc \_webform_defaults_date()
  2. 6.3 components/date.inc \_webform_defaults_date()
  3. 6.2 components/date.inc \_webform_defaults_date()
  4. 7.3 components/date.inc \_webform_defaults_date()

Implements _webform_defaults_component().

File

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

Code

function _webform_defaults_date() {
  return array(
    'name' => '',
    'form_key' => NULL,
    'pid' => 0,
    'weight' => 0,
    'value' => '',
    'required' => 0,
    'extra' => array(
      'timezone' => 'user',
      'exclude' => array(),
      'start_date' => '-2 years',
      'end_date' => '+2 years',
      'year_textfield' => 0,
      'datepicker' => 1,
      'title_display' => 0,
      'description' => '',
      'description_above' => FALSE,
      'private' => FALSE,
      'analysis' => FALSE,
    ),
  );
}