includes/wikiformat.php
changeset 1112 679916c80599
parent 1108 c1be67a50d81
child 1127 4b858862c35c
--- a/includes/wikiformat.php	Sun Aug 30 00:05:33 2009 -0400
+++ b/includes/wikiformat.php	Fri Sep 11 09:57:42 2009 -0400
@@ -62,6 +62,7 @@
       'blockquote',
       'tables',
       'heading',
+      'hr',
       // note: can't be named list ("list" is a PHP language construct)
       'multilist',
       'bold',
@@ -315,6 +316,29 @@
   }
   
   /**
+   * Disables all rules.
+   * @return null
+   */
+  
+  public function disable_all_rules()
+  {
+    $this->rules = array();
+    return null;
+  }
+  
+  /**
+   * Enables a rule
+   * @param string rule
+   * @return null
+   */
+   
+  public function enable_rule($rule)
+  {
+    $this->rules[] = $rule;
+    return null;
+  }
+  
+  /**
    * Make a rule exclusive (the only one called)
    * @param string stage
    * @return null