includes/wikiformat.php
changeset 1031 8a4b75e73137
parent 1027 98c052fc3337
child 1054 e6b14d33ac55
--- a/includes/wikiformat.php	Thu Jul 02 08:58:54 2009 -0400
+++ b/includes/wikiformat.php	Thu Jul 02 09:00:52 2009 -0400
@@ -291,6 +291,25 @@
   }
   
   /**
+   * Disable a render stage
+   * @param string stage
+   * @return null
+   */
+  
+  public function disable_rule($rule)
+  {
+    foreach ( $this->rules as $i => $current_rule )
+    {
+      if ( $current_rule === $rule )
+      {
+        unset($this->rules[$i]);
+        return null;
+      }
+    }
+    return null;
+  }
+  
+  /**
    * Generate a token
    * @param int Token index
    * @return string