&$fields: Current HTMLForm fields
'SpecialContributionsBeforeMainOutput': Before the form on Special:Contributions
-$id: User identifier
+$id: User id number, only provided for backwards-compatability
+$user: User object representing user contributions are being fetched for
+$sp: SpecialPage instance, providing context
'SpecialListusersDefaultQuery': Called right before the end of
UsersPager::getDefaultQuery().
// Add RSS/atom links
$this->addFeedLinks( array( 'action' => 'feedcontributions', 'user' => $target ) );
- if ( wfRunHooks( 'SpecialContributionsBeforeMainOutput', array( $id ) ) ) {
+ if ( wfRunHooks( 'SpecialContributionsBeforeMainOutput', array( $id, $userObj, $this ) ) ) {
$out->addHTML( $this->getForm() );
$pager = new ContribsPager( $this->getContext(), array(