ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
hook_frontpage.php File Reference

Go to the source code of this file.

Functions

 core_hook_frontpage (&$links)
 Hook to add the modinfo module to the frontpage. More...
 

Function Documentation

◆ core_hook_frontpage()

core_hook_frontpage ( $links)

Hook to add the modinfo module to the frontpage.

Parameters
array&$linksThe links on the frontpage, split into sections.

Definition at line 7 of file hook_frontpage.php.

References $links.

7  {
8  assert(is_array($links));
9  assert(array_key_exists('links', $links));
10 
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}',
15  );
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}',
20  );
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}',
25  );
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}',
30  );
31 
32 }
Attribute-related utility methods.
$links