summaryrefslogtreecommitdiff
path: root/modules/watermark/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'modules/watermark/helpers')
-rw-r--r--modules/watermark/helpers/watermark.php10
-rw-r--r--modules/watermark/helpers/watermark_installer.php4
-rw-r--r--modules/watermark/helpers/watermark_menu.php2
3 files changed, 8 insertions, 8 deletions
diff --git a/modules/watermark/helpers/watermark.php b/modules/watermark/helpers/watermark.php
index 1e9b8990..2a32147d 100644
--- a/modules/watermark/helpers/watermark.php
+++ b/modules/watermark/helpers/watermark.php
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class watermark_Core {
- public static function get_add_form() {
+ static function get_add_form() {
for ($i = 1; $i <= 100; $i++) {
$range[$i] = $i;
}
@@ -36,7 +36,7 @@ class watermark_Core {
return $form;
}
- public static function get_edit_form() {
+ static function get_edit_form() {
for ($i = 1; $i <= 100; $i++) {
$range[$i] = $i;
}
@@ -53,14 +53,14 @@ class watermark_Core {
return $form;
}
- public static function get_delete_form() {
+ static function get_delete_form() {
$form = new Forge("admin/watermarks/delete", "", "post");
$group = $form->group("delete_watermark")->label(t("Really delete Watermark?"));
$group->submit("")->value(t("Delete"));
return $form;
}
- public static function positions() {
+ static function positions() {
return array("northwest" => t("Northwest"),
"north" => t("North"),
"northeast" => t("Northeast"),
@@ -72,7 +72,7 @@ class watermark_Core {
"southeast" => t("Southeast"));
}
- public static function position($key) {
+ static function position($key) {
$positions = self::positions();
return $positions[$key];
}
diff --git a/modules/watermark/helpers/watermark_installer.php b/modules/watermark/helpers/watermark_installer.php
index 16ca8a9a..3fa4192e 100644
--- a/modules/watermark/helpers/watermark_installer.php
+++ b/modules/watermark/helpers/watermark_installer.php
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class watermark_installer {
- public static function install() {
+ static function install() {
$db = Database::instance();
$version = module::get_version("watermark");
if ($version == 0) {
@@ -39,7 +39,7 @@ class watermark_installer {
}
}
- public static function uninstall() {
+ static function uninstall() {
graphics::remove_rules("watermark");
module::delete("watermark");
Database::instance()->query("DROP TABLE `watermarks`");
diff --git a/modules/watermark/helpers/watermark_menu.php b/modules/watermark/helpers/watermark_menu.php
index f8a6d3b1..852ce000 100644
--- a/modules/watermark/helpers/watermark_menu.php
+++ b/modules/watermark/helpers/watermark_menu.php
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class watermark_menu_Core {
- public static function admin($menu, $theme) {
+ static function admin($menu, $theme) {
$menu->get("content_menu")
->append(
Menu::factory("link")