You are here

function _webform_defaults_file in Webform 5.2

Same name and namespace in other branches
  1. 6.3 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()

Create a default file component.

File

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

Code

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