function forward_panels_node_render in Forward 7.2
Same name and namespace in other branches
- 7.3 plugins/content_types/forward_node.inc \forward_panels_node_render()
1 string reference to 'forward_panels_node_render'
- forward_node.inc in plugins/
content_types/ forward_node.inc
File
- plugins/
content_types/ forward_node.inc, line 11
Code
function forward_panels_node_render($subtype, $conf, $panel_args, $context) {
if (empty($context) || empty($context->data)) {
return;
}
// Get a shortcut to the node.
$node = $context->data;
// Build the link
$widget_code = array(
'#markup' => theme('forward_link', array(
'node' => $node,
)),
);
// Build the content type block.
$block = new stdClass();
$block->module = 'forward';
$block->content = $widget_code;
$block->delta = $node->nid;
return $block;
}