summaryrefslogtreecommitdiff
path: root/modules/comment/models
diff options
context:
space:
mode:
authorJozef Selesi <jozefs@users.sourceforge.net>2008-11-15 16:52:23 +0000
committerJozef Selesi <jozefs@users.sourceforge.net>2008-11-15 16:52:23 +0000
commitf9eaa8c220630578664fb6b46d082fce42726ca5 (patch)
treea9bac48a58c68d575ef46eed149d9daf4f6a0093 /modules/comment/models
parent66bd9d85b3820df8e4393019754d6a11294d4d4e (diff)
Initial add comment implementation.
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");
}