summaryrefslogtreecommitdiff
path: root/lib/form.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/form.php')
-rw-r--r--lib/form.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/form.php b/lib/form.php
index 5c75bb65f..bd68fb0c5 100644
--- a/lib/form.php
+++ b/lib/form.php
@@ -65,6 +65,7 @@ class Form extends Widget
{
$this->out->elementStart('form',
array('id' => $this->id(),
+ 'class' => $this->formClass(),
'method' => 'POST',
'action' => $this->action()));
$this->out->elementStart('fieldset');
@@ -153,4 +154,15 @@ class Form extends Widget
function action()
{
}
+
+ /**
+ * Class of the form.
+ *
+ * @return string the form's class
+ */
+
+ function formClass()
+ {
+ return 'form';
+ }
}