You are here

function swftools_strip_base_root in SWF Tools 6.2

Return a customised file download url that doesn't include the $base_root

Parameters

$file: The path of the file for which a download link is return

Return value

The path to the file including any $base_path but excluding $base_root

2 calls to swftools_strip_base_root()
swf in ./swftools.module
Return output, which might be embed markup, or pre-flash markup that includes the appropriate jQuery added to the <head>
swftools_prepare_playlist_data in ./swftools.module
Take an array of filenames and prepare them to be used as a playlist

File

./swftools.module, line 1729

Code

function swftools_strip_base_root($file) {

  // Temporarily disable this feature - it may be causing some issues
  return $file;

  // Only produce relative url if using clean urls
  return str_replace($GLOBALS['base_root'], '', $file);
}