You are here

function _webform_defaults_file in Webform 6.3

Same name and namespace in other branches
  1. 5.2 components/file.inc \_webform_defaults_file()
  2. 6.2 components/file.inc \_webform_defaults_file()
  3. 7.4 components/file.inc \_webform_defaults_file()
  4. 7.3 components/file.inc \_webform_defaults_file()

Implements _webform_defaults_component().

File

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

Code

function _webform_defaults_file() {
  return array(
    'name' => '',
    'form_key' => NULL,
    'mandatory' => 0,
    'pid' => 0,
    'weight' => 0,
    'extra' => array(
      'filtering' => array(
        'types' => array(
          'gif',
          'jpg',
          'png',
        ),
        'addextensions' => '',
        'size' => 800,
      ),
      'savelocation' => '',
      'width' => '',
      'title_display' => 0,
      'description' => '',
      'attributes' => array(),
      'private' => FALSE,
    ),
  );
}