first commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?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');
|
||||
}
|
Reference in New Issue
Block a user