function theme_blockreference_item_simple in Block reference 7
Same name and namespace in other branches
- 6 blockreference.module \theme_blockreference_item_simple()
Theme function for simple display of a block item.
1 theme call to theme_blockreference_item_simple()
- _blockreference_item in ./
blockreference.module - Get the HTML for a block display title.
File
- ./
blockreference.module, line 760 - Defines a field type for referencing a block from a node.
Code
function theme_blockreference_item_simple($variables) {
$output = $variables['item']->info;
if (!empty($variables['item']->theme)) {
$themes = list_themes();
$theme_key = $variables['item']->theme;
$output .= ' [' . $themes[$theme_key]->info['name'] . ']';
}
return $output;
}