Skip to main content
11 events
when toggle format what by license comment
Oct 12, 2016 at 9:49 comment added Umair Ok I have confusion. The statuses module uses flag module to show "like" button. Similar to other social networks. Suppose I only want to add event for this.1. In which module I should put this code? 2. There is a sub-module for statuses which integrate flag with statuses, should I put the code in that module? 3. When someone clicks the "like" flag, how will the rules know that this event has occured?
Oct 7, 2016 at 14:16 comment added Umair Also need a replacement token to tell the name of the user who flagged the status. For example: Pierre liked your status update
Oct 7, 2016 at 14:14 comment added Umair Suppose I want to create an EVENT "User flagged statuses with like flag", CONDITION "Not own status" and ACTION (Not required as it is already there) For action i will use "Create an entity" (type "message") and then "set a data value"
Oct 7, 2016 at 14:10 comment added Umair Download the statuses dev version and check the sub-module fbss_rule and then tell me how your code fits with it
Oct 7, 2016 at 12:46 comment added Umair There is not much space here to paste the code at once. I will provide you the link
Oct 7, 2016 at 12:40 comment added Umair Module name is statuses and the sub-module name is fbss_rule (This sub-module integrates statuses with rules)
Oct 7, 2016 at 12:35 comment added Umair For few days, I was not able to come online. Actually I wanted to say something. Your answer is incomplete and a little difficult for a beginner like me to understand and implement. I think there should be more detailed instructions. Secondly, you did not tell me the code to get all the replacement patterns in a rule. I am pasting the .module and .inc file of the rules integration with statuses module which contains the rules, events and conditions for statuses module.
Sep 27, 2016 at 8:04 comment added Pierre.Vriens @Umair : check my updated answer (2nd phrase I added): you can perfectly use your existing module.
Sep 27, 2016 at 8:03 history edited Pierre.Vriens CC BY-SA 3.0
added 93 characters in body
Sep 27, 2016 at 7:58 comment added Umair Is it important to create a new module or I can insert it in my existing module?
Sep 25, 2016 at 8:15 history answered Pierre.Vriens CC BY-SA 3.0