[Mediawiki-l] setHook with parameters?

Daniel Barrett danb at VistaPrint.com
Fri Nov 16 17:24:32 UTC 2007


$wgParser->setHook('foo', 'bar') says to call function bar() when you
see the tag <foo>.  Is there a way to tell setHook to pass parameters to
bar()?  That is, when the parser sees tag <foo>, it should call bar('a',
'b', 'c')?

DanB


More information about the MediaWiki-l mailing list