function dragndrop_upload_errors_info in Drag & Drop Upload 7
Get available errors types.
Return array with available error types and human-readable messages for them. Types can be altered by hook_dragndrop_upload_errors_info_alter().
Return value
array Available error messages.
1 call to dragndrop_upload_errors_info()
- dragndrop_upload_dropzone_add in ./
dragndrop_upload.module - Add a dropzone.
File
- ./
dragndrop_upload.module, line 192 - Provides API for drag & drop upload features.
Code
function dragndrop_upload_errors_info() {
$errors = array(
'fileSize' => t('The selected file @filename cannot be uploaded, because it exceeds the maximum file size for uploading.'),
'filesNum' => t('The selected file @filename cannot be uploaded. Maximum allowed number (@allowed) of files is exceeded.'),
'fileExt' => t('The selected file @filename cannot be uploaded. Only files with the following extensions are allowed: @allowed.'),
'unknown' => t('Unknown error type'),
);
drupal_alter('dragndrop_upload_errors_info', $errors);
return $errors;
}