function _webform_edit_file_check_directory in Webform 5
Same name and namespace in other branches
- 5.2 components/file.inc \_webform_edit_file_check_directory()
- 6.3 components/file.inc \_webform_edit_file_check_directory()
- 6.2 components/file.inc \_webform_edit_file_check_directory()
- 7.4 components/file.inc \_webform_edit_file_check_directory()
- 7.3 components/file.inc \_webform_edit_file_check_directory()
1 string reference to '_webform_edit_file_check_directory'
- _webform_edit_file in components/
file.inc - Create a set of form items to be displayed on the form for editing this component. Use care naming the form items, as this correlates directly to the database schema. The component "Name" and "Description" fields are added to every…
File
- components/
file.inc, line 80
Code
function _webform_edit_file_check_directory($form_element) {
$destination_dir = variable_get('file_directory_path', 'files') . "/webform/" . $form_element['#value'];
file_check_directory($destination_dir, FILE_CREATE_DIRECTORY, 'savelocation');
return $form_element;
}