summaryrefslogtreecommitdiffstats
path: root/apps/files/templates
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-06-12 09:57:34 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-06-13 11:17:44 +0200
commitfcdcd3f2832bffcc9f2a28cf485f9859ce2e5227 (patch)
tree77d5c18d9bf3d494d1eab3dd58f2c12afb98dfb7 /apps/files/templates
parentb0171a758452176317e30e5431ac2833d06bffc3 (diff)
downloadnextcloud-server-fcdcd3f2832bffcc9f2a28cf485f9859ce2e5227.tar.gz
nextcloud-server-fcdcd3f2832bffcc9f2a28cf485f9859ce2e5227.zip
Add an event so apps can add hidden fields to the files page
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files/templates')
-rw-r--r--apps/files/templates/index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php
index 1670ccfd138..b49684643bb 100644
--- a/apps/files/templates/index.php
+++ b/apps/files/templates/index.php
@@ -21,3 +21,7 @@
<input type="hidden" name="defaultFileSortingDirection" id="defaultFileSortingDirection" value="<?php p($_['defaultFileSortingDirection']) ?>" />
<input type="hidden" name="showHiddenFiles" id="showHiddenFiles" value="<?php p($_['showHiddenFiles']); ?>" />
<?php endif;
+
+foreach ($_['hiddenFields'] as $name => $value) {?>
+<input type="hidden" name="<?php p($name) ?>" id="<?php p($name) ?>" value="<?php p($value) ?>" />
+<?php }