function _plupload_default_upload_validators in Plupload integration 8
Same name and namespace in other branches
- 7.2 plupload.module \_plupload_default_upload_validators()
- 7 plupload.module \_plupload_default_upload_validators()
- 2.0.x plupload.module \_plupload_default_upload_validators()
Helper function to add defaults to $element['#upload_validators'].
2 calls to _plupload_default_upload_validators()
- PlUploadFile::processPlUploadFile in src/
Element/ PlUploadFile.php - Render API callback: Expands the managed_file element type.
- PlUploadFile::valueCallback in src/
Element/ PlUploadFile.php
File
- ./
plupload.module, line 61 - Implementation of plupload.module.
Code
function _plupload_default_upload_validators() {
return [
// See file_save_upload() for details.
'file_validate_extensions' => [
'jpg jpeg gif png txt doc xls pdf ppt pps odt ods odp',
],
];
}