3
* Hooks for InputBox extension
15
public static function register() {
18
// Register the hook with the parser
19
$wgParser->setHook( 'inputbox', array( 'InputBoxHooks', 'render' ) );
25
// Render the input box
26
public static function render( $input, $args, $parser ) {
28
$inputBox = new InputBox( $parser );
31
$inputBox->extractOptions( $parser->replaceVariables( $input ) );
34
return $inputBox->render();