diff options
Diffstat (limited to 'mod/reportedcontent/views/default/widgets/reportedcontent/content.php')
-rw-r--r-- | mod/reportedcontent/views/default/widgets/reportedcontent/content.php | 15 |
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 |