Skip to content
Snippets Groups Projects
Commit 7076b55f authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Add new hook portalextras, that allows a module to modify the portal...

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

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2369 44740490-163a-0410-bde0-09ae8108e29a
parent e2f140a9
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment