From f9eaa8c220630578664fb6b46d082fce42726ca5 Mon Sep 17 00:00:00 2001 From: Jozef Selesi Date: Sat, 15 Nov 2008 16:52:23 +0000 Subject: Initial add comment implementation. --- modules/comment/models/comment.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/comment/models') 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"); } -- cgit v1.2.3