File: hook_configpage.php

package info (click to toggle)
simplesamlphp 1.19.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 42,920 kB
  • sloc: php: 202,044; javascript: 14,867; xml: 2,700; sh: 225; perl: 82; makefile: 70; python: 5
file content (15 lines) | stat: -rw-r--r-- 555 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
/**
 * Hook to add the consentAdmin module to the config page.
 *
 * @param \SimpleSAML\XHTML\Template $template The template that we should alter in this hook.
 * @return void
 */
function consentAdmin_hook_configpage(\SimpleSAML\XHTML\Template &$template)
{
    $template->data['links']['consentAdmin'] = [
        'href' => SimpleSAML\Module::getModuleURL('consentAdmin/consentAdmin.php'),
        'text' => \SimpleSAML\Locale\Translate::noop('Consent administration'),
    ];
    $template->getLocalization()->addModuleDomain('consentAdmin');
}