summaryrefslogtreecommitdiff
path: root/lib/form.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-15 20:54:03 +0000
committerEvan Prodromou <evan@controlyourself.ca>2009-01-15 20:54:03 +0000
commit7233e89be621c2b9ad80b8a7eb2bc16185596cca (patch)
tree0adedc8accd9f90ea26fd008d3c4f4cf371ef839 /lib/form.php
parentc42b88308683fccfc7710a39a363d98270ade39b (diff)
parentc08eadc774c2231e6b434ba067e2d7115404606f (diff)
Merge ../csarven into uiredesign
Conflicts: lib/action.php
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';
+ }
}