function theme_viewreference_formatter_full in View reference 7.3
Same name and namespace in other branches
- 6.3 viewreference.module \theme_viewreference_formatter_full()
- 6.2 viewreference.module \theme_viewreference_formatter_full()
Theme function for 'full' viewreference field formatter.
File
- ./
viewreference.module, line 558 - Defines a field type for referencing a view from a node.
Code
function theme_viewreference_formatter_full($variables) {
$element =& $variables['element'];
$output = '';
if ($view = viewreference_get_view($element, array(
'contextual',
'title',
'embed',
))) {
$output .= '<div class="contextual-links-region">';
$output .= '<h3 class="title viewreference-title">' . $view['title'] . '</h3>';
$output .= $view['contextual'];
$output .= $view['embed'];
$output .= '</div>';
}
return $output;
}