function views_content_views_attachments_content_type_render
Render the node_terms content type.
File
-
views_content/
plugins/ content_types/ views_attachments.inc, line 22
Code
function views_content_views_attachments_content_type_render($subtype, $conf, $panel_args, $context) {
if (empty($context) || empty($context->data)) {
return;
}
// Build the content type block.
$block = new stdClass();
$block->module = 'views_attachments';
$block->delta = $context->argument;
$block->title = '';
$block->content = '';
$output = views_content_context_get_output($context);
foreach ($conf['which'] as $attachment) {
if (isset($output[$attachment])) {
$block->content .= $output[$attachment];
}
}
return $block;
}