diff options
Diffstat (limited to 'modules-available/dnbd3/hooks')
-rw-r--r-- | modules-available/dnbd3/hooks/translation.inc.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/modules-available/dnbd3/hooks/translation.inc.php b/modules-available/dnbd3/hooks/translation.inc.php new file mode 100644 index 00000000..cb1854b4 --- /dev/null +++ b/modules-available/dnbd3/hooks/translation.inc.php @@ -0,0 +1,30 @@ +<?php + +$HANDLER = array(); + +/** + * List of valid subsections + */ +$HANDLER['subsections'] = array( + '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 variables. + * @param \Module $module + * @return array + */ +$HANDLER['grep_config-variables'] = function($module) { + if (!$module->activate(1, false) || !Module::isAvailable('baseconfig')) + return array(); + $want = BaseConfigUtil::getVariables($module); + foreach ($want as &$entry) { + $entry = true; + } + return $want; +}; |