Révision 6ff32cea
Ajouté par Florent Torregrosa il y a environ 9 ans
drupal7/modules/file/file.field.inc | ||
---|---|---|
252 | 252 |
* Checks for files that have been removed from the object. |
253 | 253 |
*/ |
254 | 254 |
function file_field_update($entity_type, $entity, $field, $instance, $langcode, &$items) { |
255 |
// Check whether the field is defined on the object. |
|
256 |
if (!isset($entity->{$field['field_name']})) { |
|
257 |
// We cannot check for removed files if the field is not defined. |
|
258 |
return; |
|
259 |
} |
|
260 |
|
|
255 | 261 |
list($id, $vid, $bundle) = entity_extract_ids($entity_type, $entity); |
256 | 262 |
|
257 | 263 |
// On new revisions, all files are considered to be a new usage and no |
Formats disponibles : Unified diff
Update core to 7.36