From 2bfac22d13191350c71a2ea0ce4c18ec8f636d07 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Mon, 19 Jan 2009 14:20:49 +0000
Subject: [PATCH] Adding link to front page for LDAP status module.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1159 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/ldapstatus/hooks/hook_frontpage.php | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 modules/ldapstatus/hooks/hook_frontpage.php

diff --git a/modules/ldapstatus/hooks/hook_frontpage.php b/modules/ldapstatus/hooks/hook_frontpage.php
new file mode 100644
index 000000000..0e48280c6
--- /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
-- 
GitLab