function asset_bonus_swfobject_details in Asset 6
Same name in this branch
- 6 asset_bonus/asset_bonus.module \asset_bonus_swfobject_details()
- 6 contrib/asset_bonus/asset_bonus.module \asset_bonus_swfobject_details()
Same name and namespace in other branches
- 5.2 contrib/asset_bonus/asset_bonus.module \asset_bonus_swfobject_details()
- 5 asset_bonus/asset_bonus.module \asset_bonus_swfobject_details()
File
- asset_bonus/
asset_bonus.module, line 250
Code
function asset_bonus_swfobject_details($asset) {
require_once drupal_get_path('module', 'asset_bonus') . '/3rdparty/swfheader/swfheader.class.php';
$swf = new swfheader();
$swf
->getDimensions($asset->filepath);
$details = array(
t('Width') => $swf->width . 'px',
t('Height') => $swf->height . 'px',
t('Flash Version') => $swf->version,
t('Compressed') => $swf->compressed ? t('Yes') : t('No'),
t('FPS') => $swf->fps[1],
t('Frames') => $swf->frames,
);
return $details;
}