You are here

function swftools_get_info in SWF Tools 6

Same name and namespace in other branches
  1. 5 swftools.module \swftools_get_info()
  2. 6.3 swftools.module \swftools_get_info()
  3. 6.2 swftools.module \swftools_get_info()

Attempt to return information for the specified file Supply the path to the file to be processed, and it return FALSE if no data was obtained. The return variable, if successful, is an array that may include width, height, extension, file_size, mime_type.

1 call to swftools_get_info()
swf in ./swftools.module
Return output, which might be embed markup, or pre-flash markup that includes the appropriate jQuery added to the <head>

File

./swftools.module, line 735

Code

function swftools_get_info($file) {

  // Only check the file if it is local, or it is a media player

  //if (trim(variable_get('swftools_media_url', '')) == '') {
  if (trim(variable_get('swftools_media_url', '')) == '' or strpos($file, swftools_get_player_path()) === 0) {
    $info = image_get_info($file);
    return $info;
  }
  return FALSE;
}