From 91192a5fd198921116fd0013012ff818e09892ac Mon Sep 17 00:00:00 2001
From: Olav Morken <olav.morken@uninett.no>
Date: Thu, 3 Sep 2009 10:37:23 +0000
Subject: [PATCH] frontpage_federation: Add metadata-hosted hook.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1741 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/core/www/frontpage_federation.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/core/www/frontpage_federation.php b/modules/core/www/frontpage_federation.php
index c681625fa..429b84d81 100644
--- a/modules/core/www/frontpage_federation.php
+++ b/modules/core/www/frontpage_federation.php
@@ -79,7 +79,8 @@ $allLinks = array(
 SimpleSAML_Module::callHooks('frontpage', $allLinks);
 
 
-
+$metadataHosted = array();
+SimpleSAML_Module::callHooks('metadata_hosted', $metadataHosted);
 
 
 
@@ -91,7 +92,7 @@ SimpleSAML_Module::callHooks('frontpage', $allLinks);
 
 $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler();
 
-$metaentries = array('hosted' => array(), 'remote' => array() );
+$metaentries = array('hosted' => $metadataHosted, 'remote' => array() );
 if ($config->getBoolean('enable.saml20-sp', TRUE) === true) {
 	try {
 		$metaentries['hosted']['saml20-sp'] = $metadata->getMetaDataCurrent('saml20-sp-hosted');
-- 
GitLab