You are here

function _webform_defaults_file in Webform 7.3

Same name and namespace in other branches
  1. 5.2 components/file.inc \_webform_defaults_file()
  2. 6.3 components/file.inc \_webform_defaults_file()
  3. 6.2 components/file.inc \_webform_defaults_file()
  4. 7.4 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' => '2 MB',
      ),
      'scheme' => 'public',
      'directory' => '',
      'progress_indicator' => 'throbber',
      'title_display' => 0,
      'description' => '',
      'attributes' => array(),
      'private' => FALSE,
    ),
  );
}