diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-16 07:51:42 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-16 07:51:42 +0000 |
commit | 4610fc8e7f32f1a582b5f6c9c25714151b9a2967 (patch) | |
tree | bcfecbae267d03b231eb29b7a4f829fa96af1190 /modules/comment/models | |
parent | ce7fbf979d249e5e1effb7040d3e51a2c35015e3 (diff) |
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.
Diffstat (limited to 'modules/comment/models')
-rw-r--r-- | modules/comment/models/comment.php | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |