jenkins-bot has submitted this change and it was merged.
Change subject: New hook for adding admin menu items
......................................................................
New hook for adding admin menu items
This is a new hook which allows other extensions to add to the admin
menu.
Change-Id: Iaed1d9389f63f68f5b64d0e8d9f82f8bd72bccfa
---
M WikiAdmin/WikiAdmin.class.php
A WikiAdmin/docs/Hooks.txt
2 files changed, 7 insertions(+), 0 deletions(-)
Approvals:
Robert Vogel: Looks good to me, approved
Pwirth: Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/WikiAdmin/WikiAdmin.class.php b/WikiAdmin/WikiAdmin.class.php
index 16c4377..4464bf2 100644
--- a/WikiAdmin/WikiAdmin.class.php
+++ b/WikiAdmin/WikiAdmin.class.php
@@ -217,6 +217,9 @@
$aOutSortable[$sModulLabel] = '<li>'.$sLink.'</li>';
}
+ // Allow other extensions to add to the admin menu
+ Hooks::run( 'BSWikiAdminMenuItems', array ( &$aOutSortable ) );
+
$aOutSortable['Shop'] = self::getShopListItem();
$aOutSortable['SpecialPages'] =
self::getMediaWikiSpecialPageItem();
diff --git a/WikiAdmin/docs/Hooks.txt b/WikiAdmin/docs/Hooks.txt
new file mode 100644
index 0000000..cad9e83
--- /dev/null
+++ b/WikiAdmin/docs/Hooks.txt
@@ -0,0 +1,4 @@
+==WikiAdmin.class.php==
+
+'BSWikiAdminMenuItems': Allow other extensions to add to the admin menu.
+&$aOutSortable: Hashed array of menu links. Add HTML link.
\ No newline at end of file
--
To view, visit https://gerrit.wikimedia.org/r/249732
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Iaed1d9389f63f68f5b64d0e8d9f82f8bd72bccfa
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Mglaser <[email protected]>
Gerrit-Reviewer: Pwirth <[email protected]>
Gerrit-Reviewer: Robert Vogel <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits