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/user/models/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/user/models') diff --git a/modules/user/models/user.php b/modules/user/models/user.php index 1c56b34e..5c88d8dc 100644 --- a/modules/user/models/user.php +++ b/modules/user/models/user.php @@ -20,7 +20,7 @@ class User_Model extends ORM { protected $has_and_belongs_to_many = array("groups"); - var $validation_rules = array( + var $rules = array( "name" => "required|length[4,32]", "email" => "valid_email", "password" => "required|length[5,40]"); -- cgit v1.2.3