Jdlrobson has uploaded a new change for review. https://gerrit.wikimedia.org/r/209545
Change subject: Hygiene: Introduce hooks on user dashboard page ...................................................................... Hygiene: Introduce hooks on user dashboard page Introduce hook SpecialUserProfileCards to allow other extensions to add new cards to the page. Introduce MobileSpecialPageStyles to allow other extensions to add styles to mobile special pages. See: Ice5fe009c0563265de710dc1451f52d746e1794b Change-Id: I60293c0dc1143bdb0cde086fda5d791232a0bcce --- M includes/specials/MobileSpecialPage.php M includes/specials/SpecialUserProfile.php 2 files changed, 3 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend refs/changes/45/209545/1 diff --git a/includes/specials/MobileSpecialPage.php b/includes/specials/MobileSpecialPage.php index c25b362..d3c990c 100644 --- a/includes/specials/MobileSpecialPage.php +++ b/includes/specials/MobileSpecialPage.php @@ -105,6 +105,8 @@ if ( $rl->isModuleRegistered( $specialScriptModuleName ) ) { $out->addModules( $specialScriptModuleName ); } + $styles = array(); + Hooks::run( 'MobileSpecialPageStyles', array( $id, $out ) ); } /** diff --git a/includes/specials/SpecialUserProfile.php b/includes/specials/SpecialUserProfile.php index de59c31..76c645c 100644 --- a/includes/specials/SpecialUserProfile.php +++ b/includes/specials/SpecialUserProfile.php @@ -152,6 +152,7 @@ if ( count( $cards ) > 0 ) { $data['hasActivity'] = true; $data['heading'] = $this->msg( 'mobile-frontend-profile-activity-heading' )->text(); + Hooks::run( 'SpecialUserProfileCards', array( &$cards, $this->targetUser ) ); $data['cards'] = $cards; } return $data; -- To view, visit https://gerrit.wikimedia.org/r/209545 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I60293c0dc1143bdb0cde086fda5d791232a0bcce Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/MobileFrontend Gerrit-Branch: master Gerrit-Owner: Jdlrobson <jrob...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits