diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-13 12:03:27 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-13 12:03:27 +0000 |
commit | 5dfb9a97cd5d99479610339f1c613f1468b96687 (patch) | |
tree | 04000c7a06cbf85506209a93a09ba7e1bbfc65b0 /mod/groups/forum.php | |
parent | 901f4bebb98a32212c836888ce7ee4bc15452eec (diff) | |
download | elgg-5dfb9a97cd5d99479610339f1c613f1468b96687.tar.gz elgg-5dfb9a97cd5d99479610339f1c613f1468b96687.tar.bz2 |
discussion topics using new page handler
git-svn-id: http://code.elgg.org/elgg/trunk@7880 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/forum.php')
-rw-r--r-- | mod/groups/forum.php | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/mod/groups/forum.php b/mod/groups/forum.php deleted file mode 100644 index 55f7dd95e..000000000 --- a/mod/groups/forum.php +++ /dev/null @@ -1,45 +0,0 @@ -<?php -/** - * Elgg groups forum - */ - -require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); - -$group_guid = (int)get_input('group_guid'); -set_page_owner($group_guid); -if (!(elgg_get_page_owner() instanceof ElggGroup)) { - forward(); -} - -group_gatekeeper(); - -//get any forum topics -$options = array( - 'type' => 'object', - 'subtype' => 'groupforumtopic', - 'limit' => 20, - 'order_by' => 'e.last_action desc', - 'container_guid' => $group_guid, - 'fullview' => FALSE -); - -//$topics = elgg_list_entities_from_annotations($options); -$topics = elgg_list_entities($options); - -// set up breadcrumbs -$group = get_entity($group_guid); -elgg_push_breadcrumb(elgg_echo('groups'), elgg_get_site_url()."pg/groups/world/"); -elgg_push_breadcrumb($group->name, $group->getURL()); -elgg_push_breadcrumb(elgg_echo('item:object:groupforumtopic')); - -$area1 = elgg_view('navigation/breadcrumbs'); - -$area1 .= elgg_view("forum/topics", array('topics' => $topics, 'group_guid' => $group_guid)); -elgg_set_context('groups'); - -$body = elgg_view_layout('one_column_with_sidebar', array('content' => $area1)); - -$title = elgg_echo('item:object:groupforumtopic'); - -// Finally draw the page -echo elgg_view_page($title, $body);
\ No newline at end of file |