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:
parent
5413fa718b
commit
44fbeb6709
|
@ -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;
|
||||
|
||||
|
|
Reference in New Issue