Add SpecialBlockModifyFormFields hook
For extensions to add more fields to Special:Block Change-Id: I00fbc7af1e50e1f76208a3692f152058d2d1879e
This commit is contained in:
parent
4283511335
commit
4441875b19
2 changed files with 7 additions and 0 deletions
|
|
@ -2203,6 +2203,10 @@ software.
|
|||
$software: The array of software in format 'name' => 'version'. See
|
||||
SpecialVersion::softwareInformation().
|
||||
|
||||
'SpecialBlockModifyFormFields': Add more fields to Special:Block
|
||||
$sp: SpecialPage object, for context
|
||||
&$fields: Current HTMLForm fields
|
||||
|
||||
'SpecialContributionsBeforeMainOutput': Before the form on Special:Contributions
|
||||
$id: User identifier
|
||||
|
||||
|
|
|
|||
|
|
@ -221,6 +221,9 @@ class SpecialBlock extends FormSpecialPage {
|
|||
|
||||
$this->maybeAlterFormDefaults( $a );
|
||||
|
||||
// Allow extensions to add more fields
|
||||
wfRunHooks( 'SpecialBlockModifyFormFields', array( $this, &$a ) );
|
||||
|
||||
return $a;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue