aboutsummaryrefslogtreecommitdiff
path: root/mod/reportedcontent/views/default/widgets/reportedcontent/content.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-26 02:08:49 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-26 02:08:49 +0000
commit2601fb071cf566ea1f8859268f9cbf22ae77f6a1 (patch)
treebb232fcf0b1c00ccdaaa748cf5555b7b3b2360c7 /mod/reportedcontent/views/default/widgets/reportedcontent/content.php
parent2ef37109d866708def220d082c0430f77efd6410 (diff)
downloadelgg-2601fb071cf566ea1f8859268f9cbf22ae77f6a1.tar.gz
elgg-2601fb071cf566ea1f8859268f9cbf22ae77f6a1.tar.bz2
added reported content widget
git-svn-id: http://code.elgg.org/elgg/trunk@7932 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/reportedcontent/views/default/widgets/reportedcontent/content.php')
-rw-r--r--mod/reportedcontent/views/default/widgets/reportedcontent/content.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/mod/reportedcontent/views/default/widgets/reportedcontent/content.php b/mod/reportedcontent/views/default/widgets/reportedcontent/content.php
new file mode 100644
index 000000000..4f8906ef2
--- /dev/null
+++ b/mod/reportedcontent/views/default/widgets/reportedcontent/content.php
@@ -0,0 +1,15 @@
+<?php
+/**
+ * List the latest reports
+ */
+
+$list = elgg_list_entities(array(
+ 'types' => 'object',
+ 'subtypes' => 'reported_content',
+ 'limit' => $vars['entity']->num_display,
+));
+if (!$list) {
+ $list = '<p class="mtm">' . elgg_echo('reportedcontent:none') . '</p>';
+}
+
+echo $list; \ No newline at end of file