You are here

function file_entity_uri in File Entity (fieldable files) 7.2

Same name and namespace in other branches
  1. 7.3 file_entity.module \file_entity_uri()

URI callback for file entities.

1 string reference to 'file_entity_uri'
file_entity_entity_info_alter in ./file_entity.module
Implements hook_entity_info_alter().

File

./file_entity.module, line 1055
Extends Drupal file entities to be fieldable and viewable.

Code

function file_entity_uri($file) {
  $uri['path'] = 'file/' . $file->fid;
  return $uri;
}