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

0
votes
0answers
6 views

Drupal Commerce, Set rule to order per quantity of 6,12,18 etc but with the option to be 6,12,18 different products

I haven recently started using Drupal Commerce and im loving it already, thought im trying to achieve something that i dont really know how to approach something like that. I have searched all over ...
0
votes
0answers
4 views

When using Rules, does a page refresh happen immediately if the event is set to 'Drupal is initializing'

I have several views pages set up on my site that filter the content that is shown to normal visitors. In general, these views will show users content that they have created. However, when an admin ...
0
votes
2answers
25 views

How do I create a page (with a url) that displays only views blocks

I have been using views to create all of my pages. I am wondering if there is a way to set up a page (with url) that is initially blank. I want to use context to place view blocks on this page based ...
0
votes
1answer
10 views

Set the value of a Fixed amount Commerce Coupon using rules

It is practically impossible for me to set the fixed amount of a coupon created with rules. The coupon is generated aliright with a coupon code but the fixed amount value is always empty, i can only ...
0
votes
1answer
19 views

How to disable shipping for ONLY virtual products and not if combined with physical

In Drupal Commerce, I'm trying to come up with a rule the bypasses shipping if virtual product types are put into the cart, but ONLY if all products are virtual; if physical products are put in, then ...
0
votes
0answers
12 views

Using rules for members of Organic Groups with a certain role

I am trying to set update a rule which will notify all group admins when a new user requests to join that group. The current rule notifies only the group author when a new user requests to join. I am ...
-1
votes
2answers
42 views

Undefined variable: nid

I put this code in Rules Action PHP Evaluation. What I want is getting the field_price's value, changing it for negative and returning it for Rule. With this I will be able to charge points because in ...
0
votes
0answers
7 views

Why doesn't the 'Rules evaluation log' open anymore?

I have a rule that's activated when a new comment is added. The 'Rules evaluation log' is displayed (because some error occured while executing the rule), but for some reason, it doesn't open anymore ...
0
votes
0answers
20 views

Can you hide date field when its date matches with the sites date? [duplicate]

I have a date field in my site and I want it to hide/be invisible when the date I have set is now or matches the sites date. I hope there is a way to do this using Rules.
0
votes
1answer
20 views

Charging UserPoints for flagging a node with Rules in PHP

I am trying to charge points for flagging a node with Rules in PHP, an I am using the following code. //Get variables and load user. $uid = [userpoints-transaction:user:uid]; $account = ...
0
votes
0answers
15 views

Status, rules and Message Module

I'm looking for something combination of Status, rules and Message Modules. i want to post a status with "status module" and it will be added in message types via rules module. I don't know how to ...
0
votes
1answer
21 views

New role assigned on user account update

I'm thinking about writing a condition ("has new role(s)") using the Rules module to send an email to user to whom a new role is assigned. I need to know how to actually code this... If (user has a ...
0
votes
2answers
31 views

Can I hide date field if older than a certian time using Rules?

I want to know if I can hide the values of a date field if the values are older than a certain time. The website is built with Drupal 7, and Display Suite.
-1
votes
0answers
6 views

how to get node id using webform or webform rules?

In my node pages we add block to report error related to page. when user report about page they can unpublished this page but my problem is that when i am use rules of web form event "when form ...
-2
votes
0answers
12 views

How to get a term (at file) with rules for triggering other actions? [closed]

in Drupal 7.26, we use the core upload module to upload files without creation of a node. During the upload process we tag the file with some terms. Furthermore we use a flag (flag module) to activate ...
0
votes
0answers
15 views

Send Gift Coupon code to referenced users in drupal commerce using rules

I have a custom gift coupon product and users need to input the recipient name and email before purchasing it. So far so good. Using rules, i have been able to send emails to the recipient when gift ...
0
votes
0answers
24 views

Delete account or send email based on variable content

At my earlier question I managed to delete an account when a telephonenumber matched a criteria : Delete useraccount with rules based on value filled during creation of account Now I wondered if ...
0
votes
1answer
34 views

How to send emails to the subscriber?

I have two content types movie types(say comedy, horror, action are node titles) and movies. where I am using movie types node titles as a node reference in the movies content type. here user can ...
0
votes
2answers
15 views

Rules - How can I put a link into an email sent by a rule

I would like to use rules to send an email to my admin staff when a new piece of content is created. It would be great if the email contained a link to the content to make it easier to find. Is ...
0
votes
0answers
17 views

Help me with this og_group()

I have some problem in my rules trying to use og_group() in "Execute custom php code." I have created two content types; one is [Student Application], which is the application form that will be ...
0
votes
0answers
12 views

Send userpoints to a user referenced in a commerce order

I want to give userpoints to a user referenced in a particular order with the amount of that order while deducting same userpoints from the user who purchased the order. Basically i want to user ...
1
vote
1answer
26 views

Deduct 10% transaction fee when user donates userpoints to another user using rules - Drupal 7

I want to use rules to deduct 10% of the transaction amount from a donor each time he donates userpoints to another user using the userpoints_donate contrib module. Currently there are no rules events ...
0
votes
0answers
17 views

Do tokens work with Rules “Set a data value”?

I have a simple Rule created in which the action is that a particular entity is created (a node) and then another action is called to "Set a data value" of one of this node's field (a standard text ...
0
votes
0answers
15 views

How to use workflow 2 with rules correctly?

I am using Workflow 7.x-2.2, Rules 7.x-2.6. I try to create a workflow named reviews with this following states: accept do not accept And add the reviews field the Article. Then I try to create ...
0
votes
2answers
45 views

How can I check if the author of the current node is the current logged in user?

I am trying to execute a Rule based on the condition of whether the currently logged in user, is currently viewing their node (a node they are the author of), or viewing someone else's node. The Rule ...
0
votes
0answers
9 views

Rules set dynamic date values and pass to downstream action

I need to set start/end datetime fields for a Rules-triggered call to a SOAP service (using wsclient module). The start time needs to be based on data from the previous call to the service. (Some ...
0
votes
0answers
13 views

Make replacement pattern a click-able Link

Using Rules I have created a rule shows a nodes url in a drupal message to the creator of the node. Is there a way to make replacement pattern [node-url] a click-able link,so that the node creator can ...
0
votes
0answers
9 views

Calculate a date for “Scheduled evaluation date”

I'm trying to create a rule to send a email on a customer birthday. For that, I created a contact type with a date field which has day/month/birth_year. (I want to have the birth year for future ...
0
votes
1answer
32 views

Creating a loop condition in Rules for Commerce Line items

Certain products on the site can't be shipped using a certain shipping service as they are classified as dangerous goods. So I need to be able to loop through all the items in the cart, check to see ...
0
votes
1answer
27 views

Once a month reset a field on all users accounts

Once a month I would like to reset a field on all users accounts to 0. At the moment I have a horrible way of doing it. Each time a user logs in the data is scheduled to be changed only for that ...
1
vote
0answers
26 views

What token should I use while sending email when I am programmatically adding the content?

When I fill the form. I get this email A new Event "Event name" has been created. To approve this Event please go to http://websitename.com/content/content-name and click ‘publish’. I have ...
0
votes
0answers
35 views

Rules: Event user has logged in won't trigger rule

As simple as that. I can set any event to trigger a rule (for example, user has logged out), but if I change it to User has logged in, the rule is never triggered, even if conditions and actions ...
1
vote
1answer
23 views

How to grab the user's Fivestar voting value with Rules?

On my website, comments on nodes have a Fivestar field 'Stars'. I'd like to save the user's voting value as a variable in a rule that's activated when a new comment has been saved. Unfortunately, I ...
0
votes
0answers
10 views

Rules: “Fetch entity by property” for users that share terms with new node

I have a content type of RFP that has a term reference field named "RFP Categories". The users also have this same term reference. When I publish a node, I want to email all users who selected a ...
0
votes
1answer
19 views

Module Rules-> PHP Code, trying to use a Form Handler from Pardot, but Pardot is not receiving the info

I am trying to use the Rules Module to send a form-handler to Pardot using a php Script when a User logs in. I tested my variables to make sure they were valid by seeing them in a message and they ...
0
votes
3answers
27 views

Delete useraccount with rules based on value filled during creation of account

Does someone have a solution/description for my wish to delete (fake) user accounts that almost always fill in the (phone-number) string 12345 or 123456. I already have a rule that sends me an ...
0
votes
0answers
7 views

Rules to grab field content from referancee entity

I been trying to figure this out for two days now with no luck and any searches online gave no results based around the same issue so this is really my last hope. I have a content type of VENUE and ...
0
votes
1answer
30 views

How to write a custom action that provides a new integer variable?

My articles have a field collection field and one of the fields is an integer. Users can add as many fields as they want. I'd like to reward them some userpoints, equal to the total value in their ...
0
votes
1answer
23 views

enable Rule module with fatal error

I use drupal 7.26 and try to install Rules(7.x-2.6) with drush (drush en rules -y) I can not visit my drupal site Now. I install Xdebug. this follow is error detail: Fatal error: Class name must be ...
2
votes
2answers
222 views

Is it safe to use php within a Rules condition?

Using Rules I need a condition which checks if the logged in user has authored a given content type. It seems that I need some custom php for this and I found the code below from a post on ...
1
vote
1answer
30 views

How do I send a privatemsg to all users that has flagged a node using rules?

I am using the privatemsg module, flag module and rules module. I was wondering if using rules I could send a privatemsg to all the people who have flagged a specific node when a new comment is ...
0
votes
0answers
22 views

Rules Action Does not see my custom Entity Field

I am using drupal 7 and i have been battling with this issue for days now. I am trying to use Rules to set a value on my custom field (field_birthday) on a user account entity. My rule is created as ...
0
votes
0answers
15 views

How to access custom line item field in rules loop?

I'm trying to perform an action on checkout for each line item in an order (fetched with Rules loop). The action should set value to custom line item fields. The problem is that those fields are not ...
0
votes
0answers
17 views

How To get custom entity field show up in rules actions - drupal 7

I am using drupal 7. I have a textfield from a custom module (birthday module) on a user account entity which i named "field_birthday" but when i try to create a rule that will apply on the field, it ...
0
votes
0answers
9 views

Rules Auto Create term

i want using rules for creating auto term for contet type. i created a contet type and a field for terms. and after that i add a new rules: after save a new node , add node title to new term , ...
0
votes
0answers
15 views

Setting access permissions for a rule included as part of an install profile

I am building an install profile and trying to do it so it only uses the install profile, core, and contrib - i.e. no custom modules or features. I have a few rules I am defining in ...
1
vote
0answers
21 views

How to terminate a loop in rules in drupal7

I'm using a loop to loop through the items in a entity form list. I then use a if condition using the conditional rules module, within this loop. I would like to break from the loop once this if ...
0
votes
1answer
29 views

Rules condition if user has certain roles not working at all?

I have 2 roles: Customer Moderator I have created a Rule: Event. On account creation Condition. If user has role: Moderator (and checked reverse, so when user doesn't have a role Moderator it ...
0
votes
3answers
47 views

Send user an email when a content is published

I want to send an email to a user when his earlier unpublished content is published by somebody else (site administrator, moderator, etc). I tried doing it with rules but could not figure out how. Any ...
0
votes
0answers
20 views

Triggering emails to referenced users with rules 7.x

I am aware there are a few discussions already on related topics, but there are a load of conflicting and differing discussions for different versions of Drupal and rules. So I was hoping for someone ...