The Rules module is a module that allows site administrators to define actions that are conditionally executed, either programmatically or in response to predetermined events.

learn more… | top users | synonyms

1
vote
1answer
11 views

How to compare Profile2 field with PCP percentage in drupal 7 while creating Rule?

I am using Rules, PCP & Profile2 Module in drupal 7. I want to send mail to those user whose profile is <60%, how to add condition for sending mail? How can i compare the profile2 field with ...
1
vote
1answer
12 views

rules autotag module, re-tag existing nodes bulk

I am using rules autotag module. and its working fine for add new node. but what would i do for re-tag existing nodes (approx. 40,000) ?
0
votes
0answers
12 views

Implement rules scheduler with custom module?

I made a custom module which imports data from text files (from a remote website using FTP) into tables in my website. The only missing feature is that I want to make this import every 12 hours. I ...
0
votes
0answers
20 views

Rules Scheduler offset is disable

While creating a Rule through rules module & after adding action. When i click on "Switch to data selection", I am unable to Add offset. Is there any module or setting needs to enable? Please ...
0
votes
0answers
15 views

Set Commerce Product Price via Rules

As this is the first time using rules for me, maybe I am doing something wrong. I want to set the product price to 0 if no price is set. What I am doing so far is this: Event is "before saving a ...
0
votes
0answers
7 views

Send SMS to multiple users (using rules)

So I was hoping to create a sort of subscription system using Flags, Rules and SMS Framework. I have the SMS system set up courtesy of this tutorial https://www.youtube.com/watch?v=dqkOcz_8I4U I ...
0
votes
0answers
13 views

Rule to demote content from frontpage without advising subscribers

I have rules that demotes content nodes from frontpage based on different criteria. They use a shared component to set data value Parameter: Data: [node:promote], Value: false Problem is that this ...
0
votes
0answers
10 views

Returning a variable from a rules action

I am trying to create a variation on Fetch Entity, and I'm having trouble returning an entity. I'm just grabbing the data using db_query, and trying to return an array of nodes that are loaded, but ...
-2
votes
0answers
24 views

Populating a field when saving content

I am using the node reference module. When referencing a node, I want to populate a text field in the new node, with the value of a text field from the referenced node. My site is a review site so ...
0
votes
1answer
30 views

Rule with if statement prevents users from saving their user account

I have set up a rule that is causing some odd behaviour. The event of the rule is: "After updating an existing account" However the rule is preventing the user to save the data of his particular ...
0
votes
0answers
6 views

Data Selector for Rules not allowing any value but site:current-user:role:

Similar to this Date Selector not showing up in Rules I'm in the rules module and trying to create a "Content is of Type" Condition. I can set the content type to check for but cannot pick anything ...
1
vote
0answers
11 views

How to make node visitor's list block

How can make for each node's visitors list block? The block must shows list of visitor(AUTHENTICATED USER) of current node?
0
votes
0answers
8 views

Rules: Event: While editing an exisiting node

Okay based on couple of features I require to restrict/disable access to certain field based on other fields while editing the node. the problem is in Rules module, there's no "While editing an ...
1
vote
0answers
18 views

No suggestions in Data Selector (Rules)

following this guide to display alternative prices for certain roles: http://jamestombs.co.uk/2012-09-14/drupal-commerce-different-prices-different-customer-groups But for some reason I don't get any ...
0
votes
0answers
32 views

populate a field when referencing a node [duplicate]

I am using the node reference module. When referencing a node, I want to populate a text field in the new node, with the value of a text field from the referenced node. Can this be done by a ...
0
votes
0answers
12 views

How to set limit rss feed content auto post to twitter

I am using Drupal 7. I used Feeds module for content from the RSS. So i can get the content from RSS Feeds. Now Feed Content types automatically saved with RSS Feeds content. So now I want to auto ...
0
votes
0answers
9 views

trying to map data from hybridauth to the user account fields but it is not working

I am using hybridauth social login module. Now I m trying to map user data got from hybridauth while social registration. I have written a rule. In action I have added the action 'create new entity' ...
0
votes
0answers
8 views

Rules Scheduler Replacement Patterns for Components

I am using Rules to trigger email for Registration for events on our site. I am building out a component with Rules Scheduler for the Rule to send emails through cron at a specific intervals. ...
0
votes
0answers
8 views

Why are quotes printed through a token displayed as &quot; in an e-mail?

In Drupal 6, I'm using the rules module to send an e-mail every time a new node is created. For the subject of the e-mail I use the token [node:title]. The problem is, that in the e-mail subject ...
1
vote
0answers
11 views

Add percentage based fee/tax to specific product types on checkout in Drupal Commerce

In Drupal 7 Commerce, I have two product types, a service product and a physical product. I would like a 6% fee added to all physical products only when the user gets to the cart review page. ...
0
votes
0answers
9 views

Rules: Set default values in entity creation form

I use Drupal 7 rules and rules link to create an entity depending on another one. The default values of the new entity depending on the entity which it's created from. I have working rules that create ...
0
votes
0answers
9 views

Why is unchanged and new value always the same in rule condition

I have a boolean field called verified defined in profile2. When this field changes from not ticked to ticked I would like to send out an email to the user. Easy I thought with rules Starting using ...
0
votes
0answers
29 views

Drupal commerce order total ignore changed unit price

I have problem with commerce order total counting. Every product has two prices (two fields). One price for everybody and second for exact role. I have rule which change prices if user with exact ...
0
votes
0answers
6 views

How can I implement drupal to run through a table of values, preferably through rules?

I am trying to calculate the cost of custom printed t-shirts on my website. I have a drop down that asks how many colors the imprint will be, and then the quantity of shirts. Now I am trying to ...
0
votes
0answers
5 views

How to create a gear tracker for documenting Merci checkouts

I am working on an Equipment Checkout system using Drupal 7, MERCI, views, panels, rules, and many other modules. I am working for a community college in Oregon. I am upgrading features on an already ...
0
votes
0answers
7 views

How to Publish a Group Node only after a event node has been posted

I'm using organic groups and rules module I want the group to only published a group node after a event node has been created The settings for the group nodes default is unpublished. Using rules I ...
0
votes
1answer
31 views

What does `OWNER` value mean in Rules export?

When exporting a rule from Rules module you get some serialized representation of that rule. I understand everything but the 'OWNER' property in the export string - it has 'rules' value, but what does ...
-1
votes
0answers
17 views

Order Address Component Comparison rule firing unexpectedly

I am having difficulty with a shipping rule and hope that someone can help me to understand what is happening. Background: Some carriers when shipping to Northern Ireland from the UK charge two ...
0
votes
1answer
20 views

Rule to fire only on first time publish of node

We are using workflow moderation for some content types and sent out emails to the author once a node has been published. Sometimes we have the case that an author changes a node after he has been ...
1
vote
1answer
19 views

Rules: Do action on the field of referenced node

I have an "Authors" Content-type, that users can add to their "Article" node while adding a new content as Co-Authors. Note that it's a seperate content-type not users. in "Authors" content-type I ...
0
votes
3answers
42 views

Send a message when a comment is left

I want to send a message to users that have commented on a node each time a new comment is left. I think I am half way there. I have created a component of the content type, added a loop that ...
0
votes
0answers
12 views

Calculate price using percentage from product field

I'm using drupal commerce module and drive with pricing rule problem. User and product have percentage fields, which are discount values separately. Final discount gathered from sum of this fields. ...
0
votes
2answers
68 views

Pass multiple ids as Views Arguments in the Rule action Save PDF as file on server

I'm using views PDF to print out a list of nodes on a single PDF, one per page. Now I have more than 1000 nodes/pages on a single generated pdf, so I'm trying to use VBO and Rules to create a view ...
0
votes
0answers
12 views

How to count emails sent by rules?

Using Drupal 7 views 7.x-3.8 rules 7.x-2.7 I have a rule that will send an email to a referenced user when an admin users changes a value in a select list. I have a view that shows a list of all ...
1
vote
1answer
26 views

Variable containing HTML is not rendering when sent by message notify

I am trying to send an e-mails with message notify and rules, everything is running pretty good, but there's one variable which contains a "HTML code", It describes a table of items that were bought ...
0
votes
1answer
16 views

Fatal error: Class 'RulesI18nStringController' not found in entity.i18n.inc on line 31

My client drupal site stopped working suddenly and gave me this error Fatal error: Class 'RulesI18nStringController' not found in entity.i18n.inc on line 31 i checked the rules module and entity ...
0
votes
2answers
29 views

Drupal commerce - purchase a product at registration

I'm trying to use Drupal Commerce for a subscription site that will have only one product to purchase - a subscription to a service. I'd prefer if a user could either do product subscription as a ...
1
vote
2answers
90 views

How to prevent a user from being saved with Rules?

I'm trying to prevent a user from being saved with Rules when he/she tries to use a username that contains a whitespace. I've already read How can I disallow spaces in usernames? and used the User ...
0
votes
1answer
29 views

$node object not populating with data

I'm using the Rules module to execute custom PHP script whenever a new node is saved after importing via Feeds module. <?php $lid = db_insert('location')->fields(array( 'additional' => ...
0
votes
2answers
28 views

Uploading file, parsing and displaying data

For a site i am building right now, there is one component that I would want the user to upload a file, where it will be parsed (currently a python script, but can be ported to something else). The ...
0
votes
0answers
9 views

managing variables in rules

I came across an issue with a very simple task using rules variables (maybe because I'm used to programming context). I wanted to create a coupon for commerce, those coupons only can be configured ...
0
votes
1answer
28 views

Users get a new password detect forced logout

I want to create a rule: When the user changes the new password, the system should force the user to log out and then use his new password to login. I know the event to choose after updating an ...
0
votes
0answers
38 views

Drupal 7 Rules - After saving existing content not triggered when updating taxonomy

I have the event calendar module installed (https://www.drupal.org/project/event_calendar). The module allows me to create an "event calendar" content type. Once created, I'm able to "approve" or ...
0
votes
1answer
31 views

Delete content in a user registration field after X number of days

I am looking for a way to delete the data in a custom registration field (field:transaction_code) after 30 days. How can this be achieved? Let me explain better. I want users to get the registration ...
0
votes
0answers
20 views

Is it possible to insert value in field using rules?

How can I insert data in database using rules, I created entity type job and added some fields. I want to insert values inside those field when the flag button is clicked. I tried "set a data value" ...
0
votes
0answers
18 views

Tokens are not displaying in email

I have installed the Token module in my project and created one trigger that is birthday trigger. when I set action on that trigger then it has not replaced tokens, it displays as it is. If any ...
0
votes
0answers
4 views

Send email containing content entity data to a user after file download trigger

I have used rules a bit and this should be obvious! What am I missing? I use the trigger "After File Downloaded" (which is either from core?? or from the module pubdlcnt ... it exposes only the file ...
0
votes
0answers
7 views

let user join a group only if he is member of another group

I mean for example in a sub-group structure: Group1 -Subgroup of Group1 I want to validate that if user wants to join "Subgroup of Group1" he must be member of Group1 how would be the rule? Thank ...
0
votes
1answer
40 views

Publish content on user unblock event Drupal 7

I know that this is most probably and easy question but I simply can't get it to work. I have a custom module which generates a form to create a content (unpublished) of a certain type and also ...
0
votes
1answer
34 views

Help understanding rules_invoke_event

So, I have the need to use rules_invoke_event(), however when I attempt to it does not trigger the event. The Rule I created is in Drupal through the Rules UI. However, I am trying to trigger it ...