diff options
author | Zach Copley <zach@status.net> | 2009-11-18 00:02:02 -0800 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2009-11-18 00:02:02 -0800 |
commit | 7ae45abfccd6ca56767369a5a663535e2633ea1d (patch) | |
tree | 557bf2460abf55d7a0ad7fe1c55950d12e3ae5a7 /lib/form.php | |
parent | 7dfce35bea3e9476358048083ed469b2674b41a4 (diff) | |
parent | 7e0af928132c8eda2f25943b9a316e8ddf6f9a41 (diff) |
Merge branch 'admin-sections' into 0.9.x
* admin-sections:
First draft of the admin panel for site design
Get rid of empty select in theme dropdown
Diffstat (limited to 'lib/form.php')
-rw-r--r-- | lib/form.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/form.php b/lib/form.php index 87b7a5cba..868c986b9 100644 --- a/lib/form.php +++ b/lib/form.php @@ -67,7 +67,7 @@ class Form extends Widget { $attributes = array('id' => $this->id(), 'class' => $this->formClass(), - 'method' => 'post', + 'method' => $this->method(), 'action' => $this->action()); if (!empty($this->enctype)) { @@ -120,6 +120,18 @@ class Form extends Widget } /** + * HTTP method used to submit the form + * + * Defaults to post. Subclasses can override if they need to. + * + * @return string the method to use for submitting + */ + function method() + { + return 'post'; + } + + /** * Buttons for form actions * * Submit and cancel buttons (or whatever) |