Message Subscribe Module

The Message Subscribe module provides a mechanism for users to tell the system to send them notification messages when events occur on a web site. When this module is enabled the Message stack becomes a viable alternative to the Messaging and Notifications modules.

Sending Notification Messages

Once you have created a message type for notification the message can be created (see Creating Message Instances) with the addition of a call to the message_notify_send_message function.

Creating Message Types for Notification

To construct the notification message, you need to create a message type with a multivalue message text field that will be used by the appropriate view modes.

Then each of the message text partials is associated with each of the two view modes that come with the Message Notify module.

Message Notify Module

The Message Notify module extends the Message module by providing a system for forwarding messages. The module uses a plugin system to define message notifiers. It comes with a default email notifier plugin and an SMS notifier plugin that is available when the SMS Framework module is installed.

Module Configuration

The Message module provides a user interface for configuration at /admin/config/system/message. There are three main areas of configuration. First, you can set an expiry date on messages so that messages older than a certain number of days are purged from the database. Second, there is a utility for copying text fields from one language to another (see second screenshot below). This makes it easier to create multilingual message text fields. Third, you can use the DrupalQueue for batch processing (and deleting) messages that do not have a reference to another entity.


Subscribe with RSS Subscribe to RSS - message