Merge "Add SpecialBlockModifyFormFields hook"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 16 Dec 2013 12:59:37 +0000 (12:59 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 16 Dec 2013 12:59:37 +0000 (12:59 +0000)
docs/hooks.txt
includes/specials/SpecialBlock.php

index de87963..53382f4 100644 (file)
@@ -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
 
index 3b73a37..fa5ec29 100644 (file)
@@ -221,6 +221,9 @@ class SpecialBlock extends FormSpecialPage {
 
                $this->maybeAlterFormDefaults( $a );
 
+               // Allow extensions to add more fields
+               wfRunHooks( 'SpecialBlockModifyFormFields', array( $this, &$a ) );
+
                return $a;
        }