function workbench_display_render in Workbench 7
1 string reference to 'workbench_display_render'
- workbench_display.inc in plugins/
content_types/ workbench_display.inc
File
- plugins/
content_types/ workbench_display.inc, line 18
Code
function workbench_display_render($subtype, $conf, $args, $context) {
$block = new stdClass();
if (isset($context->data)) {
if (isset($context->data->nid) && is_numeric($context->data->nid) && isset($context->data->vid) && is_numeric($context->data->vid)) {
$node = node_load($context->data->nid, $context->data->vid);
if (node_is_page($node) && empty($node->in_preview)) {
// @see workbench_moderation_node_view()
// @see workbench_moderation_workbench_block()
if (module_exists('workbench_moderation')) {
workbench_moderation_messages('view', $node);
}
$workbench_block = workbench_block_view();
$block->content = $workbench_block['content'];
}
}
}
return $block;
}