From 599714d65543dd88a17222526116c36da615f463 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 17 Oct 2016 09:06:43 +0200 Subject: [PATCH] pvedocs-include.php: add new mediawiki tag We can use this tag to add content which is not shown on the final page, but included in the mediawiki search. --- debian/tree/pve-docs-mediawiki/pvedocs-include.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/debian/tree/pve-docs-mediawiki/pvedocs-include.php b/debian/tree/pve-docs-mediawiki/pvedocs-include.php index 29f013f..6a37f9a 100644 --- a/debian/tree/pve-docs-mediawiki/pvedocs-include.php +++ b/debian/tree/pve-docs-mediawiki/pvedocs-include.php @@ -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 +function renderTagPveHideContent($input, array $args, Parser $parser, +PPFrame $frame ) { + // simpry return nothing + return ''; +} + function efPvedocsParserFunction_Magic(&$magicWords, $langCode) { # Add the magic word -- 2.39.2