[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Summary view] [Print] [Text view]
1 <?php 2 3 class NukeHooks { 4 5 /** 6 * Shows link to Special:Nuke on Special:Contributions/username if applicable 7 * 8 * @param $userId Integer 9 * @param $userPageTitle Title 10 * @param $toolLinks Array 11 * 12 * @return true 13 */ 14 public static function nukeContributionsLinks( $userId, $userPageTitle, &$toolLinks ) { 15 global $wgUser; 16 17 if ( $wgUser->isAllowed( 'nuke' ) ) { 18 $toolLinks[] = Linker::link( 19 SpecialPage::getTitleFor( 'Nuke' ), 20 wfMessage( 'nuke-linkoncontribs' )->escaped(), 21 array( 'title' => wfMessage( 'nuke-linkoncontribs-text' )->text() ), 22 array( 'target' => $userPageTitle->getText() ) 23 ); 24 } 25 return true; 26 } 27 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |