1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
<?php
/**
* Hook to add the statistics module to the config page.
*
* @param \SimpleSAML\XHTML\Template &$template The template that we should alter in this hook.
* @return void
*/
function statistics_hook_configpage(\SimpleSAML\XHTML\Template &$template)
{
$template->data['links']['statistics'] = [
'href' => SimpleSAML\Module::getModuleURL('statistics/showstats.php'),
'text' => \SimpleSAML\Locale\Translate::noop('Show statistics'),
];
$template->data['links']['statisticsmeta'] = [
'href' => SimpleSAML\Module::getModuleURL('statistics/statmeta.php'),
'text' => \SimpleSAML\Locale\Translate::noop('Show statistics metadata'),
];
$template->getLocalization()->addModuleDomain('statistics');
}
|