From 39ad9fa9a0b8d262bf87d2932a18ce9d49ab3437 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 16 Jan 2010 21:25:17 -0800 Subject: Get rid of add_rules_from() -- it's no longer necessary now that we're doing model based validation. --- modules/gallery/libraries/MY_Forge.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/modules/gallery/libraries/MY_Forge.php b/modules/gallery/libraries/MY_Forge.php index 9564f941..ee2a0bef 100644 --- a/modules/gallery/libraries/MY_Forge.php +++ b/modules/gallery/libraries/MY_Forge.php @@ -34,20 +34,6 @@ class Forge extends Forge_Core { return parent::render($template, $custom); } - /** - * Associate validation rules defined in the model with this form. - */ - public function add_rules_from($model) { - foreach ($this->inputs as $name => $input) { - if (isset($input->inputs)) { - $input->add_rules_from($model); - } - if (isset($model->form_rules[$name])) { - $input->rules($model->form_rules[$name]); - } - } - } - /** * Validate our CSRF value as a mandatory part of all form validation. */ -- cgit v1.2.3