summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/hooks/translation.inc.php
blob: 4d09553a189adc65789f397f445cf3216c092ffd (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
<?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.
 * @param \Module $module
 * @return array
 */
$HANDLER['grep_filters'] = function($module) {
	if (!$module->activate(1, false))
		return array();
	$want = StatisticsFilter::$columns;
	foreach ($want as &$entry) {
		$entry = true;
	}
	return $want;
};