function advanced_forum_forum_node_create_list_content_type_render in Advanced Forum 6.2
Same name and namespace in other branches
- 7.2 plugins/content_types/forum_node_create_list.inc \advanced_forum_forum_node_create_list_content_type_render()
Render the content.
File
- plugins/
content_types/ forum_node_create_list.inc, line 21
Code
function advanced_forum_forum_node_create_list_content_type_render($subtype, $conf, $panel_args, $context) {
if (!empty($context) && empty($context->data)) {
return;
}
if (empty($context)) {
$tid = 0;
}
else {
$tid = $context->data->tid;
}
$block = new stdClass();
$block->module = 'forum-node-create-list';
$block->delta = $tid;
$block->title = '';
// by default this has no title.
_advanced_forum_add_files();
$block->content = '<div class="forum-node-create-links">' . theme('advanced_forum_node_type_create_list', $tid) . '</div>';
return $block;
}