You are here

function _plupload_default_upload_validators in Plupload integration 7

Same name and namespace in other branches
  1. 8 plupload.module \_plupload_default_upload_validators()
  2. 7.2 plupload.module \_plupload_default_upload_validators()
  3. 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()
plupload_element_process in ./plupload.module
Process callback (#process) for plupload form element.
plupload_element_value in ./plupload.module
Validate callback for plupload form element.

File

./plupload.module, line 518
Implementation of plupload.module.

Code

function _plupload_default_upload_validators() {
  return array(
    // See file_save_upload() for details.
    'file_validate_extensions' => array(
      'jpg jpeg gif png txt doc xls pdf ppt pps odt ods odp',
    ),
  );
}