diff --git a/main/inc/lib/formvalidator/FormValidator.class.php b/main/inc/lib/formvalidator/FormValidator.class.php index 28d25ac160..9234525c91 100755 --- a/main/inc/lib/formvalidator/FormValidator.class.php +++ b/main/inc/lib/formvalidator/FormValidator.class.php @@ -2,13 +2,10 @@ /* For licensing terms, see /license.txt */ /** - * Class FormValidator - * create/manipulate/validate user input. + * Objects of this class can be used to create/manipulate/validate user input. */ class FormValidator extends HTML_QuickForm { - const LAYOUT_HORIZONTAL = 'horizontal'; - const LAYOUT_INLINE = 'inline'; public $with_progress_bar = false; /** @@ -18,7 +15,6 @@ class FormValidator extends HTML_QuickForm * @param string $action (optional Action (default is $PHP_SELF) * @param string $target (optional Form's target defaults to '_self' * @param mixed $attributes (optional) Extra attributes for
tag - * @param string $layout * @param bool $trackSubmit (optional) Whether to track if the form was * submitted by adding a special hidden field (default = true) */ @@ -28,7 +24,6 @@ class FormValidator extends HTML_QuickForm $action = '', $target = '', $attributes = null, - $layout = self::LAYOUT_HORIZONTAL, $trackSubmit = true ) { // Default form class. @@ -36,19 +31,6 @@ class FormValidator extends HTML_QuickForm $attributes['class'] = 'form-horizontal'; } - if (isset($attributes['class']) && strpos($attributes['class'], 'form-search') !== false) { - $layout = 'inline'; - } - - switch ($layout) { - case self::LAYOUT_HORIZONTAL: - $attributes['class'] = 'form-horizontal'; - break; - case self::LAYOUT_INLINE: - $attributes['class'] = 'form-inline'; - break; - } - parent::__construct($name, $method, $action, $target, $attributes, $trackSubmit); // Load some custom elements and rules @@ -138,11 +120,11 @@ EOT; { return '
-