summaryrefslogtreecommitdiff
path: root/plugins/OpenID
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-08-21 17:01:48 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-08-21 17:01:48 -0400
commit209486d3be877d85b3e241797e6042283d0f66d6 (patch)
tree89301d7461bc6fc1b760e5243dc5ce06387b7b6a /plugins/OpenID
parentfbe99bbd1871d584cb949133daeb93ad1b267fda (diff)
add OpenID doc menu item and doc page
Diffstat (limited to 'plugins/OpenID')
-rw-r--r--plugins/OpenID/OpenIDPlugin.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/OpenID/OpenIDPlugin.php b/plugins/OpenID/OpenIDPlugin.php
index 87b25d42a..eb450fc5e 100644
--- a/plugins/OpenID/OpenIDPlugin.php
+++ b/plugins/OpenID/OpenIDPlugin.php
@@ -196,4 +196,30 @@ class OpenIDPlugin extends Plugin
$action->raw($output);
return true;
}
+
+ function onStartLoadDoc(&$title, &$output)
+ {
+ if ($title == 'openid')
+ {
+ $filename = INSTALLDIR.'/plugins/OpenID/doc-src/openid';
+
+ $c = file_get_contents($filename);
+ $output = common_markup_to_html($c);
+ return false; // success!
+ }
+
+ return true;
+ }
+
+ function onEndLoadDoc($title, &$output)
+ {
+ if ($title == 'help')
+ {
+ $menuitem = '* [OpenID](%%doc.openid%%) - what OpenID is and how to use it with this service';
+
+ $output .= common_markup_to_html($menuitem);
+ }
+
+ return true;
+ }
}