function swftools_get_info in SWF Tools 6.2
Same name and namespace in other branches
- 5 swftools.module \swftools_get_info()
- 6.3 swftools.module \swftools_get_info()
- 6 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()
- swftools_set_size in ./
swftools.module - Helper function to set the size of the swf content in to $vars->params
File
- ./
swftools.module, line 886
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;
}