Go to the source code of this file.
◆ core_hook_frontpage()
core_hook_frontpage |
( |
& |
$links | ) |
|
Hook to add the modinfo module to the frontpage.
- Parameters
-
array | &$links | The links on the frontpage, split into sections. |
Definition at line 7 of file hook_frontpage.php.
References $links.
9 assert(array_key_exists(
'links',
$links));
11 $links[
'links'][
'frontpage_welcome'] = array(
12 'href' =>
SimpleSAML\Module::getModuleURL(
'core/frontpage_welcome.php'),
13 'text' =>
'{core:frontpage:welcome}',
14 'shorttext' =>
'{core:frontpage:welcome}',
16 $links[
'links'][
'frontpage_config'] = array(
17 'href' =>
SimpleSAML\Module::getModuleURL(
'core/frontpage_config.php'),
18 'text' =>
'{core:frontpage:configuration}',
19 'shorttext' =>
'{core:frontpage:configuration}',
21 $links[
'links'][
'frontpage_auth'] = array(
22 'href' =>
SimpleSAML\Module::getModuleURL(
'core/frontpage_auth.php'),
23 'text' =>
'{core:frontpage:auth}',
24 'shorttext' =>
'{core:frontpage:auth}',
26 $links[
'links'][
'frontpage_federation'] = array(
27 'href' =>
SimpleSAML\Module::getModuleURL(
'core/frontpage_federation.php'),
28 'text' =>
'{core:frontpage:federation}',
29 'shorttext' =>
'{core:frontpage:federation}',
Attribute-related utility methods.