summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/hooks/translation.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/statistics/hooks/translation.inc.php')
-rw-r--r--modules-available/statistics/hooks/translation.inc.php28
1 files changed, 28 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..f7a50b0d
--- /dev/null
+++ b/modules-available/statistics/hooks/translation.inc.php
@@ -0,0 +1,28 @@
+<?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.
+ */
+$HANDLER['grep_filters'] = function (Module $module): array {
+ if (!$module->activate(1, false))
+ return array();
+ $want = StatisticsFilter::$columns;
+ foreach ($want as &$entry) {
+ $entry = true;
+ }
+ return $want;
+};