From a25e39f9c0c14e9df1bf2109dc708e16fc7945b7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Tue, 24 Feb 2009 15:41:04 +0000
Subject: [PATCH] adding hook to frontpage and default disable

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1318 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/memcacheMonitor/default-disable       |  0
 .../memcacheMonitor/hooks/hook_frontpage.php  | 19 +++++++++++++++++++
 2 files changed, 19 insertions(+)
 create mode 100644 modules/memcacheMonitor/default-disable
 create mode 100644 modules/memcacheMonitor/hooks/hook_frontpage.php

diff --git a/modules/memcacheMonitor/default-disable b/modules/memcacheMonitor/default-disable
new file mode 100644
index 000000000..e69de29bb
diff --git a/modules/memcacheMonitor/hooks/hook_frontpage.php b/modules/memcacheMonitor/hooks/hook_frontpage.php
new file mode 100644
index 000000000..16fb4aaae
--- /dev/null
+++ b/modules/memcacheMonitor/hooks/hook_frontpage.php
@@ -0,0 +1,19 @@
+<?php
+/**
+ * Hook to add the simple consenet admin module to the frontpage.
+ *
+ * @param array &$links  The links on the frontpage, split into sections.
+ */
+function memcacheMonitor_hook_frontpage(&$links) {
+	assert('is_array($links)');
+	assert('array_key_exists("links", $links)');
+
+	$links['links'][] = array(
+		'href' => SimpleSAML_Module::getModuleURL('memcacheMonitor/memcachestat.php'),
+		'text' => array('en' => 'MemCache Statistics'),
+	);
+	
+}
+
+
+?>
-- 
GitLab