Skip to content
Snippets Groups Projects
Commit 2f850f4c authored by Olav Morken's avatar Olav Morken
Browse files

openidProvider: Add frontpage hook with link to user page.

Fixes issue 227

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1899 44740490-163a-0410-bde0-09ae8108e29a
parent c56fce95
No related branches found
No related tags found
No related merge requests found
<?php
/**
* Hook to add the OpenID provider to the authentication tab.
*
* @param array &$links The links on the frontpage, split into sections.
*/
function openidProvider_hook_frontpage(&$links) {
assert('is_array($links)');
assert('array_key_exists("links", $links)');
$links['auth'][] = array(
'href' => SimpleSAML_Module::getModuleURL('openidProvider/user.php'),
'text' => '{openidProvider:op:title_no_user}',
);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment