function _webform_defaults_file in Webform 6.2
Same name and namespace in other branches
- 5.2 components/file.inc \_webform_defaults_file()
- 6.3 components/file.inc \_webform_defaults_file()
- 7.4 components/file.inc \_webform_defaults_file()
- 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(),
),
);
}