function entity_metadata_uri_file in Entity API 7
Implements entity_uri() callback for file entities.
1 string reference to 'entity_metadata_uri_file'
- _entity_info_add_metadata in ./
entity.module - Adds metadata and callbacks for core entities to the entity info.
File
- modules/
callbacks.inc, line 1113 - Provides various callbacks for the whole core module integration.
Code
function entity_metadata_uri_file($file) {
return array(
'path' => file_create_url($file->uri),
);
}