function theme_asset_formatter_default in Asset 6
Prepare an individual item for viewing in a browser.
File
- inc/
asset.themes.inc, line 85
Code
function theme_asset_formatter_default($element) {
if (empty($element['#item'])) {
return '';
}
$item = $element['#item'];
$teaser = arg(0) == 'node' && is_numeric(arg(1)) ? FALSE : TRUE;
if (!empty($item['aid'])) {
return asset_lightbox(array(
$item,
), FALSE, $teaser);
}
}