Revision: 1899 Author: olavmrk Date: Mon Oct 26 03:14:12 2009 Log: openidProvider: Add frontpage hook with link to user page.
Fixes issue 227 http://code.google.com/p/simplesamlphp/source/detail?r=1899 Added: /trunk/modules/openidProvider/hooks /trunk/modules/openidProvider/hooks/hook_frontpage.php ======================================= --- /dev/null +++ /trunk/modules/openidProvider/hooks/hook_frontpage.php Mon Oct 26 03:14:12 2009 @@ -0,0 +1,15 @@ +<?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}', + ); +} --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "simpleSAMLphp commits" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/simplesamlphp-commits?hl=en -~----------~----~----~----~------~----~------~--~---
