Revision: 1908
Author: olavmrk
Date: Mon Oct 26 07:54:46 2009
Log: openidProvider: Add frontpage hook with link to user page.

Fixes issue 227

Merged into 1.5 branch from r1899.
http://code.google.com/p/simplesamlphp/source/detail?r=1908

Added:
  /branches/simplesamlphp-1.5/modules/openidProvider/hooks
  /branches/simplesamlphp-1.5/modules/openidProvider/hooks/hook_frontpage.php

=======================================
--- /dev/null
+++  
/branches/simplesamlphp-1.5/modules/openidProvider/hooks/hook_frontpage.php     
 
Mon Oct 26 07:54:46 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to