diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-16 21:25:17 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-16 21:25:17 -0800 |
commit | 39ad9fa9a0b8d262bf87d2932a18ce9d49ab3437 (patch) | |
tree | 233c27cfcf8747aaa413490d899e345d64faca9b | |
parent | 4a2d5bc9e234cc7e81e47131e8d8755919b773fc (diff) |
Get rid of add_rules_from() -- it's no longer necessary now that we're doing model based validation.
-rw-r--r-- | modules/gallery/libraries/MY_Forge.php | 14 |
1 files changed, 0 insertions, 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 @@ -35,20 +35,6 @@ class Forge extends Forge_Core { } /** - * 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. */ public function validate() { |