summaryrefslogtreecommitdiff
path: root/modules/watermark/helpers/watermark.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-23 01:29:17 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-23 01:29:17 +0000
commitddcf10dfce923fd07192e7dbc39fa34de3e22be8 (patch)
tree4d5f47c777390a37f155ef0cb9c5abfa922bf20e /modules/watermark/helpers/watermark.php
parentf476e2169ee84922dfe48d5a5065e1eabe40713f (diff)
Allow the site admin to upload watermark images. Can't do much with them yet.
Diffstat (limited to 'modules/watermark/helpers/watermark.php')
-rw-r--r--modules/watermark/helpers/watermark.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/watermark/helpers/watermark.php b/modules/watermark/helpers/watermark.php
index 9fb03ecd..6d8da35a 100644
--- a/modules/watermark/helpers/watermark.php
+++ b/modules/watermark/helpers/watermark.php
@@ -19,14 +19,14 @@
*/
class watermark_Core {
public static function get_watermark_form() {
- $form = new Forge("admin/watermark/load", "", "post",
- array("id" => "gUploadWatermarkForm", "enctype" => "multipart/form-data"));
+ $form = new Forge("admin/watermarks", "", "post");
$group = $form->group("add_watermark")->label(_("Upload Watermark"));
- $group->upload("file")->label(_("Watermark"))->rules("allow[jpg,png,gif],size[1M]");
+ $group->upload("file")->label(_("Watermark"))->rules("allow[jpg,png,gif]|size[1MB]|required");
+ $group->submit(_("Upload"));
return $form;
}
- public static function get_watermark_postion_form($position="southeast") {
+ public static function get_watermark_position_form($position="southeast") {
$form = new Forge("admin/watermark/position", "", "post");
$group = $form->group("watermark_position")->label(_("Update Position"));
$group->dropdown("position")->label(_("Watermark Position"))