Move docs menu to site primary menu

This commit is contained in:
Evan Prodromou
2011-09-30 14:24:27 -04:00
parent 89ecda2c52
commit 82badb19c7
4 changed files with 74 additions and 34 deletions

View File

@@ -536,15 +536,12 @@ class OpenIDPlugin extends Plugin
*
* @return boolean hook value
*/
function onEndLoadDoc($title, &$output)
{
if ($title == 'help') {
// TRANS: Item on help page. This message contains Markdown links in the form [description](link).
$menuitem = _m('* [OpenID](%%doc.openid%%) - What OpenID is and how to use it with this service.');
$output .= common_markup_to_html($menuitem);
}
function onEndDocsMenu(&$items) {
$items[] = array('doc',
array('title' => 'openid'),
_m('MENU', 'OpenID'),
_('Logging in with OpenID'),
'nav_doc_openid');
return true;
}