1 file.module file_uri($file)

URI callback for file entities.

File

core/modules/file/file.module, line 514
Defines a "managed_file" Form API field and a "file" field for Field module.

Code

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