summaryrefslogtreecommitdiffstats
path: root/modules-available/baseconfig_bwidm/hooks/translation.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/baseconfig_bwidm/hooks/translation.inc.php')
-rw-r--r--modules-available/baseconfig_bwidm/hooks/translation.inc.php41
1 files changed, 41 insertions, 0 deletions
diff --git a/modules-available/baseconfig_bwidm/hooks/translation.inc.php b/modules-available/baseconfig_bwidm/hooks/translation.inc.php
new file mode 100644
index 00000000..00898075
--- /dev/null
+++ b/modules-available/baseconfig_bwidm/hooks/translation.inc.php
@@ -0,0 +1,41 @@
+<?php
+
+$HANDLER = array();
+
+/**
+ * List of valid subsections
+ */
+$HANDLER['subsections'] = array(
+ 'config-variable-categories', 'config-variables'
+);
+
+/*
+ * 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_config-variable-categories'] = function($module) {
+ if (!$module->activate())
+ return array();
+ $want = BaseConfigUtil::getCategories($module);
+ foreach ($want as &$entry) {
+ $entry = true;
+ }
+ return $want;
+};
+
+/**
+ * Configuration variables
+ */
+$HANDLER['grep_config-variables'] = function($module) {
+ if (!$module->activate())
+ return array();
+ $want = BaseConfigUtil::getVariables($module);
+ foreach ($want as &$entry) {
+ $entry = true;
+ }
+ return $want;
+};