summaryrefslogtreecommitdiff
path: root/modules/notification/helpers
AgeCommit message (Collapse)Author
2009-05-26Restructure the module lifecycle.Bharat Mediratta
Install: <module>_installer::install() is called, any necessary tables are created. Activate: <module>_installer::activate() is called. Module controllers are routable, helpers are accessible, etc. The module is in use. Deactivate: <module>_installer::deactivate() is called. Module code is not accessible or routable. Module is *not* in use, but its tables are still around. Uninstall: <module>_installer::uninstall() is called. Module is completely removed from the database. Admin > Modules will install and activate modules, but will only deactivate (will NOT uninstall modules).
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-03-04Redefine the batch API to be very very simple. You callBharat Mediratta
batch::start() before starting a series of events, and batch::stop() when you're done. In batch mode, the notification module will store up pending notifications. When the batch job is complete, it'll send a single digested email to each user for all of her notifications. Updated the scaffold and local_import to use this. Haven't modified SimpleUploader yet.
2009-03-04A variety of cleanups:Bharat Mediratta
* Allow for the "movie" type in all of our text * Try to follow the pattern of mainly only passing ORM objects to the view and let it generate its own text (this becomes even more important when 3rd parties want to customize notification messages) * Rename _send_message to be _notify_subscribers to be more acccurate and have it explicitly take a subject in the API * Use Item_Model::url() in the views instead of hand crafting URLs * Reformat HTML in views * Use $comment->author_xxx() functions instead of replicating that code * Fix several places where we were encoding data by doing ucfirst($item->type) with conditionals where we form the text properly. We should *never* be showing data types to the end user! This is not localizable! Note that this probably breaks the existing batch processing code. I am going to redo that in a subsequent pass.
2009-03-04Send 1 items added notification per batch of itemsTim Almdal
2009-03-03Undo r20234Tim Almdal
2009-03-03Removed the === false and === true checksTim Almdal
2009-02-28Change the pattern to identify tables that need prefix substitution toTim Almdal
mirror the drupal pattern of using braces {}.
2009-02-27This implements table prefix for all the queries in core, user, exif,Tim Almdal
tag, search, comment and notification modules (Ticket #68)
2009-02-10Clean up translations to use t() properly and differentiate betweenBharat Mediratta
albums and photos. We should not say the word "item" to users if we can avoid it.
2009-02-10Indentation fix.Bharat Mediratta
2009-02-08Use the ORM method delete_all to remove selected records from theTim Almdal
database instead of calling the Database::query with raw sql.
2009-02-05Set default charset to utf8Bharat Mediratta
2009-02-04Delete subscriptions when a user is deletedTim Almdal
2009-02-02Notifications now send emails when a comment is published. It won'tTim Almdal
send the email if the comment status is not published. This gives the administrator to moderate the comments prior to being published.
2009-02-02Enable csrf validation on the add/remove notification controllerTim Almdal
2009-02-02code audit fixes + bug fix: don't call sendmail with an empty To list (in ↵Andy Staudacher
notifications module)
2009-02-02Add sending notifications when an item is deleted. We are almostTim Almdal
done, just need to do comments.
2009-02-02Change the item menu to allow the watch icon to change depending onTim Almdal
whether the item is currently being watched. Currently the icon is the same as the add icon and needs to be changed.
2009-02-02We no longer need a dialog to set or remove a watch, so remove it.Tim Almdal
2009-02-02As we stagger towards completing the notification module.Tim Almdal
Item changes and Item additions email notifications with this change. Still to come is item deleted, comment added and comment updated.
2009-02-01Simplify the setting of a notifications. Notifications are not onlyTim Almdal
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.
2009-01-30The start of the notification module. At this point, the icon has been ↵Tim Almdal
added to the item menu in the sidebar (both photo and album). There is a corresponding icon in themes/default/images that needs to be spruced up. You can add and remove notifications to albums and photos, but nothing happens under the covers for event handling.