23 lines
562 B
PHP
23 lines
562 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use SimpleSAML\Locale\Translate;
|
|
use SimpleSAML\Module;
|
|
use SimpleSAML\XHTML\Template;
|
|
|
|
/**
|
|
* Hook to add the cron module to the config page.
|
|
*
|
|
* @param \SimpleSAML\XHTML\Template &$template The template that we should alter in this hook.
|
|
*/
|
|
function cron_hook_configpage(Template &$template): void
|
|
{
|
|
$template->data['links'][] = [
|
|
'href' => Module::getModuleURL('cron/info'),
|
|
'text' => Translate::noop('Cron module information page'),
|
|
];
|
|
|
|
$template->getLocalization()->addModuleDomain('cron');
|
|
}
|