r50988 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50987‎ | r50988 | r50989 >
Date:20:41, 25 May 2009
Author:yaron
Status:deferred
Tags:
Comment:
Added efConfigureAddToAdminLinks() function
Modified paths:
  • /trunk/extensions/Configure/Configure.func.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Configure/Configure.func.php
@@ -160,3 +160,17 @@
161161
162162 return false;
163163 }
 164+
 165+/**
 166+ * Adds links to Configure's special pages to the Special:AdminLinks page,
 167+ * defined by the Admin Links extension
 168+ */
 169+function efConfigureAddToAdminLinks( &$admin_links_tree ) {
 170+ $general_section = $admin_links_tree->getSection(wfMsg('adminlinks_general'));
 171+ $configure_row = new ALRow('configure');
 172+ $configure_row->addItem(ALItem::newFromSpecialPage('Configure'));
 173+ $configure_row->addItem(ALItem::newFromSpecialPage('ViewConfig'));
 174+ $configure_row->addItem(ALItem::newFromSpecialPage('Extensions'));
 175+ $general_section->addRow($configure_row);
 176+ return true;
 177+}

Status & tagging log