git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 209486d3 authored by Evan Prodromou's avatar Evan Prodromou

add OpenID doc menu item and doc page

parent fbe99bbd
......@@ -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;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment