From 6f358291733b5844f5e9beaa747f554a0049e27a Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sun, 1 Feb 2009 03:58:31 +0000 Subject: Simplify the setting of a notifications. Notifications are not only set on a album. The notifications are implicitly active for all child elements. It now sends emails if the email address of the subscribed user has been set. No email, no attempt to send the notification. Still to do, come up with better messages as the current ones are just place holders. --- modules/notification/helpers/notification_menu.php | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'modules/notification/helpers/notification_menu.php') diff --git a/modules/notification/helpers/notification_menu.php b/modules/notification/helpers/notification_menu.php index 8c2e84d8..b36b69e8 100644 --- a/modules/notification/helpers/notification_menu.php +++ b/modules/notification/helpers/notification_menu.php @@ -32,19 +32,4 @@ class notification_menu_Core { } } } - - static function photo($menu, $theme) { - if (!user::active()->guest) { - $item = $theme->item(); - - if ($item) { - $menu - ->append(Menu::factory("dialog") - ->id("watch") - ->label(t("Enable notifications for this photo")) - ->url(url::site("notification/watch/$item->id")) - ->css_id("gWatchLink")); - } - } - } } -- cgit v1.2.3