pvedocs-include.php: add new mediawiki tag <pvehide>

We can use this tag to add content which is not shown
on the final page, but included in the mediawiki search.
This commit is contained in:
Dietmar Maurer 2016-10-17 09:06:43 +02:00
parent 115aef16f8
commit 599714d655

View File

@ -18,8 +18,19 @@ function efPvedocsParserFunction_Setup(&$parser) {
# Set a function hook associating the "pvedocs" magic
# word with our function
$parser->setFunctionHook( 'pvedocs', 'efPvedocsParserFunction_Render' );
$parser->setHook('pvehide', 'renderTagPveHideContent' );
return true;
}
// Render <pvehide>
function renderTagPveHideContent($input, array $args, Parser $parser,
PPFrame $frame ) {
// simpry return nothing
return '';
}
function efPvedocsParserFunction_Magic(&$magicWords, $langCode) {
# Add the magic word