Coder Social home page Coder Social logo

message_subscribe's Introduction

Build Status

Message-subscribe provides a subscription system on top of Flag and Message-notify; providing a scalable solution for sending mass messages (e.g. emails) as-well.

MAIN CONCEPTS

  1. Every flag that is prefixed with "subscribe_" is considered a valid subscring-flag by this module. You can add as many flags as you wish.
  2. It is up to the the implementing module to create the Message entity, and pass it along to message_subscribe_send_message(). From there message-subscribe takes care of saving it, and sending it to the subscribed users.
  3. Getting the "subscribers" is a two step process:
    • Extract the "basic context" from the given entity. For example, on the event of creating a new node, the implementing module will pass the node entity, where the Message-subscribe will add to the "context" the node-author, any taxonomy term the node is related to, and if OG module is enabled all the groups the node belongs to. Note: Implementing modules may pass their own custom context instead.
    • After we have the context (i.e. an array keyed by the entity-type and array of entity IDs as value), we iterate over it and query the {flag} table to get all the users that have flaggings on those items. Note: Implementing modules may later alter the retrieved list.

Sponsored by Acquia; Developed by Gizra

message_subscribe's People

Contributors

amitaibu avatar darthsteven avatar dawehner avatar ryan-jacobs avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.