aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire/pages/thewire/thread.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/thewire/pages/thewire/thread.php')
-rw-r--r--mod/thewire/pages/thewire/thread.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/mod/thewire/pages/thewire/thread.php b/mod/thewire/pages/thewire/thread.php
new file mode 100644
index 000000000..8b6ee4bd0
--- /dev/null
+++ b/mod/thewire/pages/thewire/thread.php
@@ -0,0 +1,28 @@
+<?php
+/**
+ * View conversation thread
+ */
+
+$thread_id = get_input('thread_id');
+
+$title = elgg_echo('thewire:thread');
+
+elgg_push_breadcrumb(elgg_echo('thewire'), 'thewire/all');
+elgg_push_breadcrumb($title);
+
+$content = elgg_list_entities_from_metadata(array(
+ "metadata_name" => "wire_thread",
+ "metadata_value" => $thread_id,
+ "type" => "object",
+ "subtype" => "thewire",
+ "limit" => 20,
+));
+
+$body = elgg_view_layout('content', array(
+ 'filter' => false,
+ 'content' => $content,
+ 'title' => $title,
+ 'buttons' => false,
+));
+
+echo elgg_view_page($title, $body);