diff options
Diffstat (limited to 'mod/reportedcontent/views/default/widgets/reportedcontent/content.php')
-rw-r--r-- | mod/reportedcontent/views/default/widgets/reportedcontent/content.php | 16 |
1 files changed, 16 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..0095decca --- /dev/null +++ b/mod/reportedcontent/views/default/widgets/reportedcontent/content.php @@ -0,0 +1,16 @@ +<?php +/** + * List the latest reports + */ + +$list = elgg_list_entities(array( + 'type' => 'object', + 'subtype' => 'reported_content', + 'limit' => $vars['entity']->num_display, + 'pagination' => false, +)); +if (!$list) { + $list = '<p class="mtm">' . elgg_echo('reportedcontent:none') . '</p>'; +} + +echo $list;
\ No newline at end of file |