You are here

function theme_blockreference_formatter_default in Block reference 6

Same name and namespace in other branches
  1. 7.2 blockreference.module \theme_blockreference_formatter_default()
  2. 7 blockreference.module \theme_blockreference_formatter_default()

Theme function for 'default' blockreference field formatter.

File

./blockreference.module, line 279
Defines a field type for referencing a block from a node.

Code

function theme_blockreference_formatter_default($element) {
  $block = _theme_blockreference_formatter_get_block($element);
  $output = '';
  if ($block->content) {
    $output = theme('block', $block);
  }
  return $output;
}