diff --git a/modules/ldapstatus/hooks/hook_frontpage.php b/modules/ldapstatus/hooks/hook_frontpage.php new file mode 100644 index 0000000000000000000000000000000000000000..0e48280c65f290660f9ec7ddf28c98f7e8e15c7d --- /dev/null +++ b/modules/ldapstatus/hooks/hook_frontpage.php @@ -0,0 +1,17 @@ +<?php +/** + * Hook to add the modinfo module to the frontpage. + * + * @param array &$links The links on the frontpage, split into sections. + */ +function ldapstatus_hook_frontpage(&$links) { + assert('is_array($links)'); + assert('array_key_exists("links", $links)'); + + $links['links'][] = array( + 'href' => SimpleSAML_Module::getModuleURL('ldapstatus/'), + 'text' => array('en' => 'LDAP Status page', 'no' => 'LDAP statusoversikt'), + ); + +} +?> \ No newline at end of file