Hi all! I'm relatively new to the forums, and had a few questions to ask. My department uses Drupal to host a knowledgebase of sorts, which we are constantly updating. I wondering if there is a model already created which will allow me to create a rule to generate a notification to all users with a selected role each time content is added/edit. Again, I'm pretty new to all of this, so some of it may be above my head, but I'm willing to learn. Also can anyone else recommend any other modules which may come in handy? Thanks in advance!

Comments

yelvington’s picture

Harry Hobbes’s picture

You might find this helpful: http://nodeone.se/nb/node/32

Harry

dev20.addweb’s picture

You can do this by using rule module and you can import rule as described below:

{ "rules_notify_users_on_node_add_update" : {
    "LABEL" : "Notify users on node add-update",
    "PLUGIN" : "reaction rule",
    "OWNER" : "rules",
    "REQUIRES" : [ "rules" ],
    "ON" : { "node_insert" : [], "node_update" : [] },
    "DO" : [
      { "mail_to_users_of_role" : {
          "roles" : { "value" : { "4" : "4" } },
          "subject" : "Test Subject",
          "message" : "Test Message",
          "from" : "test@gmail.com"
        }
      }
    ]
  }
}

You can select user's role accordingly to requirement and select particular content type to filter to notification for particular content type.

Hope this helps!

Thanks.