function theme_blockreference_formatter_plain in Block reference 7
Same name and namespace in other branches
- 6 blockreference.module \theme_blockreference_formatter_plain()
- 7.2 blockreference.module \theme_blockreference_formatter_plain()
Theme function for 'plain' blockreference field formatter.
File
- ./
blockreference.module, line 814 - Defines a field type for referencing a block from a node.
Code
function theme_blockreference_formatter_plain($variables) {
$element =& $variables['element'];
$output = '';
$block = blockreference_formatter_get_block($element);
if ($block) {
$info = module_invoke($block->module, 'block_info');
$output = $info[$block->delta]['info'];
}
return $output;
}