From 4610fc8e7f32f1a582b5f6c9c25714151b9a2967 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 16 Nov 2008 07:51:42 +0000 Subject: Create Forge::add_rules_from() which pulls validation rules from the model and associates them with the form. This replaces the various _add_validation_rules() functions in the user and comment modules. Move user edit form into user helper for consistency with the comment module. Implement missing _form method in the user controller. --- modules/comment/models/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/comment/models') diff --git a/modules/comment/models/comment.php b/modules/comment/models/comment.php index 2ed2b83c..b1eb37b7 100644 --- a/modules/comment/models/comment.php +++ b/modules/comment/models/comment.php @@ -18,7 +18,7 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ class Comment_Model extends ORM { - var $validation_rules = array( + var $rules = array( "author" => "required", "email" => "required|valid_email", "text" => "required"); -- cgit v1.2.3