From d8b468cf12528c7a6ab8974c1f1d024fb90d2980 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 24 Jul 2014 08:49:47 +0200 Subject: [PATCH] Add addSubmitButton to BaseBackendForm refs #5525 --- .../Config/Authentication/BaseBackendForm.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/application/forms/Config/Authentication/BaseBackendForm.php b/application/forms/Config/Authentication/BaseBackendForm.php index b48aef98c..4670017f0 100644 --- a/application/forms/Config/Authentication/BaseBackendForm.php +++ b/application/forms/Config/Authentication/BaseBackendForm.php @@ -30,6 +30,22 @@ abstract class BaseBackendForm extends Form $this->addElement($checkbox); } + /** + * @see Form::addSubmitButton() + */ + public function addSubmitButton() + { + $this->addElement( + 'submit', + 'btn_submit', + array( + 'label' => t('Save Changes') + ) + ); + + return $this; + } + /** * Validate this form with the Zend validation mechanism and perform a logic validation of the connection. *