diff options
Diffstat (limited to 'mod/groups/views/default/groups/forum_latest.php')
-rw-r--r-- | mod/groups/views/default/groups/forum_latest.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/mod/groups/views/default/groups/forum_latest.php b/mod/groups/views/default/groups/forum_latest.php index a903b7fd4..a6d80252a 100644 --- a/mod/groups/views/default/groups/forum_latest.php +++ b/mod/groups/views/default/groups/forum_latest.php @@ -1,3 +1,12 @@ +<?php
+
+ // Latest forum discussion for the group home page
+
+ //check to make sure this group forum has been activated
+ if($vars['entity']->forum_enable == 'yes'){
+
+?>
+
<div id="latest_discussion_widget">
<h2><?php echo elgg_echo('groups:latestdiscussion'); ?></h2>
<?php
@@ -22,4 +31,7 @@ }
?>
<br class="clearfloat" />
-</div>
\ No newline at end of file +</div>
+<?php
+ }//end of forum active check
+?>
\ No newline at end of file |