Mglaser has uploaded a new change for review. https://gerrit.wikimedia.org/r/249732
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(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions refs/changes/32/249732/1 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: newchange Gerrit-Change-Id: Iaed1d9389f63f68f5b64d0e8d9f82f8bd72bccfa Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions Gerrit-Branch: master Gerrit-Owner: Mglaser <gla...@hallowelt.biz> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits