diff --git a/modules/core/www/frontpage_federation.php b/modules/core/www/frontpage_federation.php
index c681625fa2888e0088d6094f9f2221af32a9a1ac..429b84d81584251c7deff3fc7bd353f8e696e633 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');