summaryrefslogblamecommitdiffstats
path: root/modules-available/baseconfig_bwidm/hooks/translation.inc.php
blob: a53500fc0cb13a6a228801443cb0e0ae1d55aa7a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                                        


                            

                                                                 
                                         








                                                       


                           

                                                       
                                         






                                                      
<?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.
 * @param \Module $module
 * @return array
 */
$HANDLER['grep_config-variable-categories'] = function($module) {
	if (!$module->activate(1, false))
		return array();
	$want = BaseConfigUtil::getCategories($module);
	foreach ($want as &$entry) {
		$entry = true;
	}
	return $want;
};

/**
 * Configuration variables.
 * @param \Module $module
 * @return array
 */
$HANDLER['grep_config-variables'] = function($module) {
	if (!$module->activate(1, false))
		return array();
	$want = BaseConfigUtil::getVariables($module);
	foreach ($want as &$entry) {
		$entry = true;
	}
	return $want;
};