You are here

function media_entity_uri in D7 Media 7

URI callback for file entities.

1 string reference to 'media_entity_uri'
media_entity_info_alter in ./media.module
Implements hook_entity_info_alter().

File

./media.module, line 557
Media API

Code

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