aboutsummaryrefslogtreecommitdiff
path: root/mod/logrotate/views
diff options
context:
space:
mode:
Diffstat (limited to 'mod/logrotate/views')
-rw-r--r--mod/logrotate/views/default/settings/logrotate/edit.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/mod/logrotate/views/default/settings/logrotate/edit.php b/mod/logrotate/views/default/settings/logrotate/edit.php
new file mode 100644
index 000000000..19b92c320
--- /dev/null
+++ b/mod/logrotate/views/default/settings/logrotate/edit.php
@@ -0,0 +1,20 @@
+<?php
+ $period = $vars['entity']->period;
+ if (!$period) $period = 'monthly';
+
+?>
+<p>
+ <?php echo elgg_echo('logrotate:period'); ?>
+
+ <?php
+ echo elgg_view('input/pulldown', array(
+ 'internalname' => 'params[period]',
+ 'options_values' => array(
+ 'weekly' => elgg_echo('logrotate:weekly'),
+ 'monthly' => elgg_echo('logrotate:monthly'),
+ 'yearly' => elgg_echo('logrotate:yearly'),
+ ),
+ 'value' => $period
+ ));
+ ?>
+</p>