]> git.proxmox.com Git - pve-docs.git/blobdiff - debian/tree/pve-docs-mediawiki/pvedocs-include.php
pvedocs-include.php: add new mediawiki tag <pvehide>
[pve-docs.git] / debian / tree / pve-docs-mediawiki / pvedocs-include.php
index 5fc53784a0b00341491ea97b3d7540b40578964e..6a37f9aa98770335c1f7d7237b86ae6e63a7d992 100644 (file)
@@ -3,7 +3,7 @@
 # see http://www.mediawiki.org/wiki/Manual:Parser_functions
 
 $wgExtensionCredits['parserhook'][] = array(
-    'name' => "PVE Documenation Pages",
+    'name' => "PVE Documentation Pages",
     'description' => "Display PVE Documentation Pages", 
     'author' => "Dietmar Maurer",
 );
@@ -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