$this->alterForm( $form );
// Give hooks a chance to alter the form, adding extra fields or text etc
- wfRunHooks( "Special{$this->getName()}BeforeFormDisplay", array( &$form ) );
+ wfRunHooks( 'SpecialPageBeforeFormDisplay', array( $this->getName(), &$form ) );
return $form;
}
/**
* Process the form on POST submission.
* @param array $data
- * @return bool|array True for success, false for didn't-try, array of errors on failure
+ * @param HTMLForm $form
+ * @return bool|string|array|Status As documented for HTMLForm::trySubmit.
*/
- abstract public function onSubmit( array $data );
+ abstract public function onSubmit( array $data /* $form = null */ );
/**
* Do something exciting on successful processing of the form, most likely to show a