From 93977e579cca9a9d0df28099e1fb7596bcc1c825 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 15 Dec 2008 09:22:32 +0000 Subject: Refresh of Forge r168 from vendor/forge/modified --- modules/forge/libraries/Form_Submit.php | 41 +++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 modules/forge/libraries/Form_Submit.php (limited to 'modules/forge/libraries/Form_Submit.php') diff --git a/modules/forge/libraries/Form_Submit.php b/modules/forge/libraries/Form_Submit.php new file mode 100644 index 00000000..527580c9 --- /dev/null +++ b/modules/forge/libraries/Form_Submit.php @@ -0,0 +1,41 @@ + 'submit', + 'class' => 'submit' + ); + + protected $protect = array('type'); + + public function __construct($value) + { + $this->data['value'] = $value; + } + + public function render() + { + $data = $this->data; + unset($data['label']); + + return form::button($data); + } + + public function validate() + { + // Submit buttons do not need to be validated + return $this->is_valid = TRUE; + } + +} // End Form Submit \ No newline at end of file -- cgit v1.2.3