Project

General

Profile

Revision 76bdcd04

Added by Assos Assos almost 6 years ago

Weekly update of contrib modules

View differences:

drupal7/sites/all/modules/webform/components/file.inc
197 197
  '#type' => 'textfield',
198 198
  '#title' => t('Width'),
199 199
  '#default_value' => $component['extra']['width'],
200
  '#description' => t('Width of the file field.') . ' ' . t('Leaving blank will use the default size.'),
200
  '#description' => t('Width of the file field.') . ' ' .
201
    t('Leaving blank will use the default size.'),
201 202
  '#size' => 5,
202 203
  '#maxlength' => 10,
203 204
  '#weight' => 4,
......
429 430
  $fid = is_array($value)
430 431
            ? (!empty($value['fid']) ? $value['fid'] : '')
431 432
            : (!empty($value) ? $value : '');
432
  // Extend access to this file, even if the submission has not been saved yet. This may happen when
433
  // previewing a private file which was selected but not explicitly uploaded, and then previewed.
433
  // Extend access to this file, even if the submission has not been saved yet.
434
  // This may happen when previewing a private file which was selected but not
435
  // explicitly uploaded, and then previewed.
434 436
  if ($fid) {
435 437
    $_SESSION['webform_files'][$fid] = $fid;
436 438
  }

Also available in: Unified diff