forum_enable == 'no') { return true; } $group = $vars['entity']; $all_link = elgg_view('output/url', array( 'href' => "pg/discussion/owner/$group->guid", 'text' => elgg_echo('link:view:all'), )); $header = "$all_link"; $header .= '

' . elgg_echo('discussion:group') . '

'; elgg_push_context('widgets'); $options = array( 'type' => 'object', 'subtype' => 'groupforumtopic', 'container_guid' => $group->getGUID(), 'limit' => 6, 'full_view' => false, 'pagination' => false, ); $content = elgg_list_entities($options); elgg_pop_context(); if (!$content) { $content = '

' . elgg_echo('grouptopic:notcreated') . '

'; } $new_link = elgg_view('output/url', array( 'href' => "pg/discussion/add/" . $group->getGUID(), 'text' => elgg_echo('groups:addtopic'), )); $content .= "$new_link"; echo elgg_view_module('info', '', $content, array('header' => $header));