Add new hook portalextras, that allows a module to modify the portal configuration in code (not only config)

git-svn-id: http://simplesamlphp.googlecode.com/svn/trunk@2369 44740490-163a-0410-bde0-09ae8108e29a
This commit is contained in:
andreassolberg 2010-06-28 10:58:26 +00:00
parent 5413fa718b
commit 44fbeb6709
1 changed files with 5 additions and 5 deletions

View File

@ -23,11 +23,11 @@ function portal_hook_htmlinject(&$hookinfo) {
$allLinks = array_merge($allLinks, $ls);
}
$portal = new sspmod_portal_Portal($allLinks,
$portalConfig->getValue('pagesets', array(
array('frontpage_welcome', 'frontpage_config', 'frontpage_auth', 'frontpage_federation'),
))
);
$pagesets = $portalConfig->getValue('pagesets', array(
array('frontpage_welcome', 'frontpage_config', 'frontpage_auth', 'frontpage_federation'),
));
SimpleSAML_Module::callHooks('portalextras', $pagesets);
$portal = new sspmod_portal_Portal($allLinks, $pagesets);
if (!$portal->isPortalized($hookinfo['page'])) return;