function entity_metadata_field_file_set in Entity API 7
Callback for setting the file entity of file fields.
2 string references to 'entity_metadata_field_file_set'
- entity_property_field_item_file_info in includes/
entity.property.inc - Defines info for the properties of the file-field item data structure.
- entity_property_field_item_image_info in includes/
entity.property.inc - Defines info for the properties of the image-field item data structure.
File
- modules/
callbacks.inc, line 625 - Provides various callbacks for the whole core module integration.
Code
function entity_metadata_field_file_set(&$item, $property_name, $value) {
$item['fid'] = $value;
}