You are here

function mediafront_get_media_filepath in MediaFront 6.2

Same name and namespace in other branches
  1. 6 mediafront.module \mediafront_get_media_filepath()
  2. 7 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 666

Code

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