Projet

Général

Profil

Révision 01f36513

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/webform/components/file.inc
191 191
    '#parents' => array('extra', 'progress_indicator'),
192 192
  );
193 193

  
194
  // TODO: Make managed_file respect the "size" parameter.
194
  // @todo: Make managed_file respect the "size" parameter.
195 195
  /*
196 196
  $form['display']['width'] = array(
197 197
  '#type' => 'textfield',
......
209 209
}
210 210

  
211 211
/**
212
 * Form API validator ensures rename string is empty or contains one token.
213
 *
212 214
 * A Form API element validate function to ensure that the rename string is
213 215
 * either empty or contains at least one token.
214 216
 */
......
394 396
 *   - element: A render element representing the file.
395 397
 *
396 398
 * @return string
399
 *   The HTML.
397 400
 */
398 401
function theme_webform_managed_file($variables) {
399 402
  $element = $variables['element'];
......
497 500
 */
498 501
function _webform_attachments_file($component, $value) {
499 502
  $file = (array) webform_get_file($value[0]);
500
  // This is necessary until the next release of mimemail is out, see [#1388786].
501
  $file['filepath'] = $file['uri'];
502 503
  $files = array($file);
503 504
  return $files;
504 505
}
......
627 628
}
628 629

  
629 630
/**
630
 * Rename any files which are eligible for renaming, if this submission is being
631
 * submitted for the first time.
631
 * Rename any files which are eligible for renaming.
632
 *
633
 * Renames if this submission is being submitted for the first time.
632 634
 */
633 635
function webform_file_rename($node, $submission) {
634 636
  if (isset($submission->file_usage)) {

Formats disponibles : Unified diff