Révision 8d02775b
Ajouté par Assos Assos il y a environ 4 ans
drupal7/sites/all/modules/webform/webform.module | ||
---|---|---|
1245 | 1245 |
'conditional' => FALSE, |
1246 | 1246 |
'default_value' => FALSE, |
1247 | 1247 |
'attachment' => TRUE, |
1248 |
'file_usage' => TRUE, |
|
1248 | 1249 |
), |
1249 | 1250 |
'file' => 'components/file.inc', |
1250 | 1251 |
); |
... | ... | |
1331 | 1332 |
$renameable = array(); |
1332 | 1333 |
|
1333 | 1334 |
foreach ($node->webform['components'] as $cid => $component) { |
1334 |
if ($component['type'] == 'file') {
|
|
1335 |
if (webform_component_feature($component['type'], 'file_usage')) {
|
|
1335 | 1336 |
$has_file_components = TRUE; |
1336 | 1337 |
if (!empty($submission->data[$cid])) { |
1337 | 1338 |
foreach ($submission->data[$cid] as $key => $value) { |
... | ... | |
1354 | 1355 |
$old_submission = webform_get_submission($node->nid, $submission->sid); |
1355 | 1356 |
|
1356 | 1357 |
foreach ($node->webform['components'] as $cid => $component) { |
1357 |
if ($component['type'] == 'file') {
|
|
1358 |
if (webform_component_feature($component['type'], 'file_usage')) {
|
|
1358 | 1359 |
if (!empty($old_submission->data[$cid])) { |
1359 | 1360 |
$old_fids = array_merge($old_fids, $old_submission->data[$cid]); |
1360 | 1361 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules