diff options
Diffstat (limited to 'core/Form.php')
-rw-r--r-- | core/Form.php | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/core/Form.php b/core/Form.php index 4dfbdc087e..6c00803938 100644 --- a/core/Form.php +++ b/core/Form.php @@ -23,13 +23,13 @@ abstract class Piwik_Form extends HTML_QuickForm { protected $a_formElements = array(); - function __construct( $action = '', $attributes = '' ) + function __construct( $action = '' ) { if(empty($action)) { $action = Piwik_Url::getCurrentQueryString(); } - parent::HTML_QuickForm('form', 'POST', $action, $target='', $attributes); + parent::HTML_QuickForm('form', 'POST', $action); $this->registerRule( 'checkEmail', 'function', 'Piwik_Form_isValidEmailString'); $this->registerRule( 'fieldHaveSameValue', 'function', 'Piwik_Form_fieldHaveSameValue'); @@ -96,16 +96,6 @@ abstract class Piwik_Form extends HTML_QuickForm } } } - function setSelected( $nameElement, $value ) - { - foreach( $this->_elements as $key => $value) - { - if($value->_attributes['name'] == $nameElement) - { - $this->_elements[$key]->_attributes['selected'] = 'selected'; - } - } - } } function Piwik_Form_fieldHaveSameValue($element, $value, $arg) |