ItSpiderman has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/376013 )

Change subject: [WIP] ContextMenu: Add hook to enable adding more items
......................................................................

[WIP] ContextMenu: Add hook to enable adding more items

Change-Id: I01afd723ed6c03863a198d476064508f5950613f
ERM: #7409
---
M ContextMenu/includes/api/BSApiContextMenuTasks.php
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions 
refs/changes/13/376013/1

diff --git a/ContextMenu/includes/api/BSApiContextMenuTasks.php 
b/ContextMenu/includes/api/BSApiContextMenuTasks.php
index c028a73..1fd017c 100644
--- a/ContextMenu/includes/api/BSApiContextMenuTasks.php
+++ b/ContextMenu/includes/api/BSApiContextMenuTasks.php
@@ -35,6 +35,8 @@
 
                $oTitle = Title::newFromText( $oData->title );
 
+               Hooks::run( 'BsContextMenuGetItems', array( &$aItems, $oTitle ) 
);
+
                if( $oTitle->getNamespace() === NS_USER ) {
                        $oTargetUser = User::newFromName( 
$oTitle->getPrefixedDBKey() );
                        if( $oTargetUser ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/376013
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I01afd723ed6c03863a198d476064508f5950613f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: ItSpiderman <d.savulje...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to