1.20.x file.module file_uri($file)

URI callback for file entities.

File

modules/file/file.module, line 509
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;
}