diff options
author | Simon Rettberg | 2020-04-20 11:49:17 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-04-20 11:49:17 +0200 |
commit | 5eaa4292c6db2c1ee1282c938c899dc5b88db65f (patch) | |
tree | 137eaa063302b055ddec03e2c4c3ff5c084f11bf /modules-available/statistics/hooks | |
parent | [serversetup-bwlp-ipxe] Fix: Imported PXELINUX entries are invalid (diff) | |
download | slx-admin-5eaa4292c6db2c1ee1282c938c899dc5b88db65f.tar.gz slx-admin-5eaa4292c6db2c1ee1282c938c899dc5b88db65f.tar.xz slx-admin-5eaa4292c6db2c1ee1282c938c899dc5b88db65f.zip |
[statistics] New filter UI
Diffstat (limited to 'modules-available/statistics/hooks')
-rw-r--r-- | modules-available/statistics/hooks/translation.inc.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/modules-available/statistics/hooks/translation.inc.php b/modules-available/statistics/hooks/translation.inc.php new file mode 100644 index 00000000..4d09553a --- /dev/null +++ b/modules-available/statistics/hooks/translation.inc.php @@ -0,0 +1,30 @@ +<?php + +$HANDLER = array(); + +/** + * List of valid subsections + */ +$HANDLER['subsections'] = array( + 'filters' +); + +/* + * Handlers for the subsections that will return an array of expected tags. + * This is optional, if you don't want to define expected tags, don't create a function. + */ + +/** + * Configuration categories. + * @param \Module $module + * @return array + */ +$HANDLER['grep_filters'] = function($module) { + if (!$module->activate(1, false)) + return array(); + $want = StatisticsFilter::$columns; + foreach ($want as &$entry) { + $entry = true; + } + return $want; +}; |