blob: 7588fe384671482902efdd525142ac84dc49e43a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<?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) {
$module->activate();
$want = BaseConfigUtil::getCategories();
foreach ($want as &$entry) {
$entry = true;
}
return $want;
};
/**
* Configuration variables
*/
$HANDLER['grep_config-variables'] = function($module) {
$module->activate();
$want = BaseConfigUtil::getVariables();
foreach ($want as &$entry) {
$entry = true;
}
return $want;
};
|