function theme_asset_icon in Asset 5.2
Theme an individual icon for browsing. Allows a link_title property to be added to the asset object to override the display title. This is used to display .. as the link title for the parent directory.
Related topics
6 theme calls to theme_asset_icon()
- asset_icon_ajax in ./
asset.module - theme_asset_directory_browse in ./
asset.types.inc - theme_asset_search_wizard_browse in contrib/
asset_search/ asset_search.module - Theme the search folder to display a browsable list of pseudo-assets
- theme_asset_wizard_browse in ./
asset_wizard.module - Wizard Step 1: Display the icon list for browsing
- theme_asset_wizard_selected in ./
asset_wizard.module
File
- ./
asset.module, line 1168 - Main module.
Code
function theme_asset_icon($asset, $size = 64) {
return '<div class="icon">' . asset_icon($asset, $size) . '</div>' . '<div class="caption">' . ($asset->link_title ? $asset->link_title : $asset->title) . '</div>';
}