* @copyright Copyright © 2005, 2006 Ævar Arnfjörð Bjarmason * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later */ $wgHooks['ParserTestParser'][] = 'wfParserTestParserHookSetup'; function wfParserTestParserHookSetup( &$parser ) { $parser->setHook( 'tag', 'wfParserTestParserHookHook' ); return true; } function wfParserTestParserHookHook( $in, $argv ) { ob_start(); var_dump( $in, $argv ); $ret = ob_get_clean(); return "
\n$ret"; }