function theme_asset_directory_browse in Asset 6
Same name and namespace in other branches
- 5.2 asset.types.inc \theme_asset_directory_browse()
1 theme call to theme_asset_directory_browse()
- asset_directory_view in ./
asset.types.inc - Implementation of hook_asset_type('view') for directory asset type
File
- ./
asset.types.inc, line 257 - This file is included by asset_asset_type() and includes all the file and directory specific functions
Code
function theme_asset_directory_browse($items = array()) {
$size = 64;
$links = array();
foreach ($items as $asset) {
$icon = theme('asset_icon', $asset, $size);
$links[] = tbl($icon, 'asset/' . $asset->aid, array(), NULL, NULL, FALSE, TRUE);
}
$output .= '<ul class="asset-directory-browse clear-block">';
foreach ($links as $link) {
$output .= '<li>' . $link . '</li>';
}
$output .= '</ul>';
return $output;
}