You are here

function mediafront_get_media_filepath in MediaFront 7

Same name and namespace in other branches
  1. 6.2 mediafront.module \mediafront_get_media_filepath()
  2. 6 mediafront.module \mediafront_get_media_filepath()

Determine the file path for the media file.

1 call to mediafront_get_media_filepath()
mediafront_get_media_file in ./mediafront.module
Given a Drupal file object, this function returns the media player file object.

File

./mediafront.module, line 676

Code

function mediafront_get_media_filepath($file) {
  return isset($file->url) ? $file->url : (isset($file->path) ? $file->path : (!isset($file->filename) ? '' : (preg_match('/^http(s)?\\:\\/\\//', $file->uri) ? $file->uri : file_create_url($file->uri))));
}