MediaWiki REL1_30
RenameuserHooks Class Reference

Static Public Member Functions

static onContributionsToolLinks ( $id, $nt, &$tools)
 Shows link to Special:Renameuser on Special:Contributions/foo.
 
static onGetLogTypesOnUser (array &$types)
 So users can just type in a username for target and it'll work.
 
static onShowMissingArticle ( $article)
 Show a log if the user has been renamed and point to the new username.
 

Detailed Description

Definition at line 3 of file Renameuser.hooks.php.

Member Function Documentation

◆ onContributionsToolLinks()

static RenameuserHooks::onContributionsToolLinks ( $id,
$nt,
& $tools )
static

Shows link to Special:Renameuser on Special:Contributions/foo.

Parameters
$id
$ntTitle
$tools
Returns
bool

Definition at line 46 of file Renameuser.hooks.php.

References $wgUser, SpecialPage\getTitleFor(), Linker\link(), and wfMessage().

◆ onGetLogTypesOnUser()

static RenameuserHooks::onGetLogTypesOnUser ( array & $types)
static

So users can just type in a username for target and it'll work.

Parameters
array&$types
Returns
bool

Definition at line 66 of file Renameuser.hooks.php.

◆ onShowMissingArticle()

static RenameuserHooks::onShowMissingArticle ( $article)
static

Show a log if the user has been renamed and point to the new username.

Don't show the log if the $oldUserName exists as a user.

Parameters
$articleArticle
Returns
bool

Definition at line 11 of file Renameuser.hooks.php.

References $out, NS_USER_TALK, and LogEventsList\showLogExtract().


The documentation for this class was generated from the following file: