summaryrefslogtreecommitdiff
path: root/modules/comment/models
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment/models')
-rw-r--r--modules/comment/models/comment.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/comment/models/comment.php b/modules/comment/models/comment.php
index 4db09a5b..2ed2b83c 100644
--- a/modules/comment/models/comment.php
+++ b/modules/comment/models/comment.php
@@ -18,4 +18,8 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class Comment_Model extends ORM {
+ var $validation_rules = array(
+ "author" => "required",
+ "email" => "required|valid_email",
+ "text" => "required");
}