You are here

function theme_blockreference_formatter_plain in Block reference 7.2

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

Theme function for 'plain' blockreference field formatter.

1 call to theme_blockreference_formatter_plain()
theme_blockreference_formatter_config_link in ./blockreference.module
Theme function for 'config_link' blockreference field formatter.

File

./blockreference.module, line 189

Code

function theme_blockreference_formatter_plain($variables) {
  $element = $variables['element'];
  $block = _blockreference_formatter_get_block($element);
  if ($block) {
    $info = module_invoke($block->module, 'block_info');
    return $info[$block->delta]['info'];
  }
  return '';
}