diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-08-04 07:20:17 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-08-04 13:01:23 -0400 |
commit | 7a742a0572a3f0aa529785f4f7eab320a2dd099d (patch) | |
tree | 1ea0127232320377635f8b05395488c7824e638c /plugins | |
parent | 93239adb55d338af3852ad7eb9113aa06cd1afd5 (diff) |
show OpenID action in login nav
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/OpenID/OpenIDPlugin.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/OpenID/OpenIDPlugin.php b/plugins/OpenID/OpenIDPlugin.php index 149a92356..b70b1da19 100644 --- a/plugins/OpenID/OpenIDPlugin.php +++ b/plugins/OpenID/OpenIDPlugin.php @@ -75,4 +75,16 @@ class OpenIDPlugin extends Plugin return true; } + + function onEndLoginGroupNav(&$action) + { + $action_name = $action->trimmed('action'); + + $action->menuItem(common_local_url('openidlogin'), + _('OpenID'), + _('Login or register with OpenID'), + $action_name === 'openidlogin'); + + return true; + } }
\ No newline at end of file |