#485: can moderate pure-HTML mails
[platal.git] / include / validations / nl.inc.php
index 250515b..447c199 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2004 Polytechnique.org                              *
+ *  Copyright (C) 2003-2006 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -47,6 +47,25 @@ class NLReq extends Validate
     }
 
     // }}}
+    // {{{ function editor()
+
+    function editor()
+    {
+        return 'include/form.valid.edit-nl.tpl';
+    }
+
+    // }}}
+    // {{{ function handle_editor()
+
+    function handle_editor()
+    {
+        $this->art->_body   = Env::v('nl_body');
+        $this->art->_title  = Env::v('nl_title');
+        $this->art->_append = Env::v('nl_append');
+        return true;
+    }
+
+    // }}}
     // {{{ function _mail_subj
     
     function _mail_subj()