From eba717f95f586d2538007bd18da6e9b32b076c30 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 31 Oct 2008 22:12:14 +0000 Subject: Merge over vendor code. git-svn-id: http://gallery.svn.sourceforge.net/svnroot/gallery/trunk/eval/gx/gallery3/trunk@18408 57fcd75e-5312-0410-8df3-f5eb6fbb1595 --- 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