aboutsummaryrefslogtreecommitdiff
path: root/mod/reportedcontent/views/default/widgets/reportedcontent/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/reportedcontent/views/default/widgets/reportedcontent/edit.php')
-rw-r--r--mod/reportedcontent/views/default/widgets/reportedcontent/edit.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/mod/reportedcontent/views/default/widgets/reportedcontent/edit.php b/mod/reportedcontent/views/default/widgets/reportedcontent/edit.php
new file mode 100644
index 000000000..ecd732d23
--- /dev/null
+++ b/mod/reportedcontent/views/default/widgets/reportedcontent/edit.php
@@ -0,0 +1,22 @@
+<?php
+/**
+ * Widget edit view
+ */
+
+// set default value
+if (!isset($vars['entity']->num_display)) {
+ $vars['entity']->num_display = 4;
+}
+
+$params = array(
+ 'name' => 'params[num_display]',
+ 'value' => $vars['entity']->num_display,
+ 'options' => array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10),
+);
+$dropdown = elgg_view('input/dropdown', $params);
+
+?>
+<div>
+ <?php echo elgg_echo('reportedcontent:numbertodisplay'); ?>:
+ <?php echo $dropdown; ?>
+</div>