function file_entity_upload_validators_pre_render

cis7 file_entity.module file_entity_upload_validators_pre_render($element)
cle7 file_entity.module file_entity_upload_validators_pre_render($element)
elmsmedia7 file_entity.module file_entity_upload_validators_pre_render($element)
icor7 file_entity.module file_entity_upload_validators_pre_render($element)
meedjum_blog7 file_entity.module file_entity_upload_validators_pre_render($element)
mooc7 file_entity.module file_entity_upload_validators_pre_render($element)

Pre-render callback for adding validation descriptions to file upload fields.

4 string references to 'file_entity_upload_validators_pre_render'
file_entity_add_upload_multiple in sites/all/modules/ulmus/file_entity/file_entity.pages.inc
Form for uploading multiple files.
file_entity_add_upload_step_upload in sites/all/modules/ulmus/file_entity/file_entity.pages.inc
Generate form fields for the first step in the add file wizard.
file_entity_edit in sites/all/modules/ulmus/file_entity/file_entity.pages.inc
Page callback: Form constructor for the file edit form.
file_entity_upload_archive_form in sites/all/modules/ulmus/file_entity/file_entity.pages.inc

File

sites/all/modules/ulmus/file_entity/file_entity.module, line 2163
Extends Drupal file entities to be fieldable and viewable.

Code

function file_entity_upload_validators_pre_render($element) {
  if (!empty($element['#upload_validators'])) {
    if (!isset($element['#description'])) {
      $element['#description'] = '';
    }
    if ($element['#description'] !== FALSE) {
      $element['#description'] = theme('file_upload_help', array('description' => $element['#description'], 'upload_validators' => $element['#upload_validators']));
    }
  }
  return $element;
}