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
1answer
7 views

Userpoints only for node revision if previous revision is old enough

I am not sure how to go about this. I use the Userpoints module in Drupal 7 to atribute points to users who create nodes ('reviews'). I also want to allow them to gain some points if they supercede or ...
0
votes
0answers
6 views

drupal commerce discount product for base price

I made several rules for discount. 10% off, 9% off, 8% off etc. The only problem is that the discount is calculated from the price included VAT. I want the discount calculated from the Subtotal price, ...
1
vote
0answers
8 views

change fields permission in rules module

I installed field permissions module to grant access of the individual fields to the roles. I need to change some fields permission when an event occurs. How do I can add the field edit permission to ...
0
votes
0answers
15 views

problem accessing user variables in rules

I use module rules linkevent https://www.drupal.org/project/rules_linkevent to trigger a rule based on visited path. Tha problem I have that in condition I need to use user variables but get an error ...
1
vote
1answer
14 views

Drupal node “ranking” based on views sorting

I am creating a site where there are nodes (which are "causes") that users can donate to (i.e. buying a donation product using Drupal Commerce, which is sort of irrelevant, but just for the record). ...
1
vote
1answer
17 views

Rules: Show system message to user when node is published

I'm looking for a way to show a system message to the author of a node, when the node gets published (by an administrator) I think this must be achievable with Rules, but browsing the web and ...
0
votes
1answer
6 views

Compare a user's userpoints with rules

I am interested in creating a rule that checks a user's userpoints and then the rule performs an action.Currently rules doesn't have such condition.I read that this is possible to do with a Rules ...
0
votes
0answers
17 views

How to run auto feed with a auto link for every created node?

I'm stuck on changing the url of a feeds what i want to do is after a person creates a content that feeds runs his feeds to the target url depending on the value he filled in. example: person fills ...
0
votes
0answers
13 views

Adding a Product with Rules while in checkout for Paypal

I have 4 Checkout Panes (Checkout-Shipping-Review-Payment(Paypal redirect)). After having some product inside the cart and jumping to Checkout i can select Paypal as payment method and on Paypal i can ...
1
vote
1answer
10 views

how to react on file save using rules module

How is it possible to react on newly uploaded file with rules? Is there any trigger like file upload or file update? Thank you.
1
vote
1answer
17 views

Clone nodes and change fields with Rules and VBO

I' trying to create a rule component that clones selected nodes and then changes some fields, using Rules, VBO and Node Clone. VBO and Node clone work fine, but I can't change values of every field ...
0
votes
1answer
22 views

Send email when entity field value is changed

I have used Rules module for notification when node is created, edited or deleted. My site is in three languages and I use Entity Translation for translating node's field. Now I want notification ...
1
vote
0answers
10 views

Create node via URL parameters to different drupal site

I am looking for a way to create a node via just a URL. I know the prepopulate module and similar can auto populate a form for a user to submit, but I would like to avoid the form altogether. After a ...
0
votes
0answers
15 views

How to redirect user with rule when user visit link with view

I got a rule that redirect user when he viste a view but it does not work with the event "view page" or "Drupal is initializing" here is the rule { "rules_uid_141" : { "LABEL" : "uid=141", "PLUGIN" ...
0
votes
1answer
24 views

What is the simplest way to flush cache at a predetermined date and time?

For site a) I would like to set up a schedule "page and else"cache clear every day at midnight. For site b) I would like to set up a schedule full cache clear every Wednesday day at midnight. I am ...
0
votes
0answers
14 views

Flag the node that is referenced via an entity form submission with rules

I am trying to recreate an "enquiry basket". I am using Entityform, Inline Entity Form, Rules, Views and Flag. I have a node content type called Custom product. I am referencing different entity ...
2
votes
1answer
29 views

How to ensure emails are sent only once to users in a Views Block Operations (VBO) list

I created a view which is a list of comments made by users to a particular node. I then created a rule which triggers upon event "when a new comment is saved" The action is to load the view i ...
0
votes
0answers
7 views

empty value inside rules component

I have a simple rule with action calling a component. This action provides one argument value coming from a field (field can have a value or can be empty). Component, among other things, displays a ...
0
votes
0answers
15 views

Increasing order total weight [duplicate]

Could some one tell me how do i increase the weight of an order total using rules and ubercart module? Thanks in advance
0
votes
0answers
8 views

Rules & VBO - how to list the titles of nodes deleted

I have a rule that uses a VBO view to check for nodes over 10 days old and then delete them when CRON is ran - it works fine. What I want to do though is have this rule send me an email which lists ...
0
votes
1answer
20 views

Emergency message on site with rules(?)

I'm wondering if anyone has an approach to the following scenario: In the event of an emergency I would like the site administrator to push a message to all screens (to any anonymous viewer on any ...
0
votes
0answers
6 views

Does rules take advantage of search api for fetching nodes?

I have a few rules which fectch nodes I was wondering if performance would increase by creating a proper index. thanks.
0
votes
1answer
12 views

How to filter messages

I'm developing a lot of complex rules in D7 and for debugging reasons it is very handy to have different messagse (the standard drupal message) within the website. For this I use showing a message on ...
0
votes
0answers
13 views

Rules - create user on webform submission by anonymous user

I'm trying to create a user with rules on webform submission by anonymous user, as the title says. I set my event (After a webform has been submitted), set my conditions and set my actions. Create a ...
0
votes
1answer
33 views

Adding a product to cart using rules

How do I add a product to cart using Rules & Ubercart in Drupal? My aim is to add a product to cart when someone has an weight order total equal 1 kg during checkout.
0
votes
0answers
12 views

On user creation create node with user reference field prepoulated [closed]

I would like to know the best way to automate the below process: After a user is created they are directed to a add node form with the user reference field pre-populated. I have currently achieved ...
0
votes
0answers
12 views

PHP ignored when calling views bulk operation from rules

We have a view with a Global PHP filter that returns the uid of users based on the contextual filter's date received from a rule (set to run weekly, once). The view on work fine with arguments on ...
0
votes
0answers
11 views

How to create content depending on creation of an other content type with rules

I am abandoned in case of the rules module. Is there a way to create a forum every time a specified content type is created and give the forum the same title as the content. I am using drupals ...
0
votes
0answers
12 views

Rule to store user's last post date and scheduled rule based 30 day reminder

In this screnario, user's can post 1 node of a specific content type every 30 days (interval changes depending on user role). We are using node_limit to accomplish this; it's doesn't play with rules. ...
0
votes
0answers
4 views

How do I programatically change the user's language (in a rules action)?

I'm trying to create a custom rules action that allows me to toggle the user language between en-US (US English) and ja (Japanese). However, my code doesn't change the value: function ...
0
votes
1answer
25 views

Change the front page value for logged in users

On my site I have two front pages: node/31, for anonymous users calendar-node-field-journal-date/month, for logged in users When a users clicks on the front page (which is rendered as $front_page ...
0
votes
0answers
8 views

How to use dinamic currency rates for drupal commerce multicurrency?

local currency exchange In my country rates is very different from ECB. I need to dynamically update exchange rates every day from xml file of chosen bank. First step is get exchange rates from xml ...
0
votes
1answer
21 views

How to set a value using Rules

I want to add an additional field on each orders, and that field can be edited. I've installed the Field Collections module. I've added a field in the order settings using the Field Collection field ...
0
votes
0answers
5 views

Rules - how to print in an email nodes deleted when rule fired

I have set up a rule that deletes all nodes that are older than 7 days which works fine. What I cannot figure how to do is: List the title of the nodes that have been deleted each time and send in ...
0
votes
0answers
10 views

Need help sending e-mail with SKU, billing address, and shipping info to dropshipper

I have a product type with a term reference. This term reference lists different dropshippers. My goal is to send en e-mail to the dropshipper referenced when an order is placed. Right now I have a ...
0
votes
0answers
32 views

Send pdf attachment in “Send html e-mail” using Rules and MIME mail

I have installed Rules, MIME mail, Printpdf. From help of which I have created nodes and it's pdf using printpdf. Now I have created a rules for when new content is created, How can I send pdf from ...
1
vote
3answers
28 views

Password request redirect to another page

I click on forgot password page it redirect me to http://example.com/user/password which is fine now when i enter email id . it redirect me to "http//example.com/user */. I want it to redirect ...
0
votes
1answer
14 views

Unable to use rules to update field after the first update

I currently have a field that shows the last updated date on a user edit page. I'm using the current configuration for rules. Event: After updating an existing user account After saving a ...
0
votes
0answers
22 views

Auto creation of a node for each uploaded file in the form with rules?

Hello there? How's goin'? I'm trying to create a node for each file uploaded in a form (entity form). The form consists of one file field: uploading_file. Now I can create nodes with the rule but ...
0
votes
1answer
10 views

In drupal with Rules module have to restrict the edit and delete options using Field value “approved”

In my website i add three roles. user, tester and admin. when user submit the content, tester will check and approving it. My need is before the content will be "approved" user can edit and delete his ...
0
votes
0answers
20 views

Get parts of current page url for use in rules

I have the following setting: A content type "Task" with fields: term reference: unit name integer: unitnumber entity reference: here I am referencing an entity form type. I have specified as ...
0
votes
0answers
14 views

How might I 'pre-register' users to various OGs before they have logged in?

In a Drupal 7 installation that relies heavily on organic groups and user accounts authenticating via LDAP. Drupal accounts are prohibited. We'd like to be able to 'pre-add' folks to various groups. ...
1
vote
1answer
36 views

Use of a global variable ('submission counter')

I'm trying to construct a registration form (of a node) wich stores serial (ascending) values in a hidden field. The form is open to unregistered users. I made it with rules and variable (every time a ...
1
vote
1answer
15 views

Copy filefield image to different filefield field

I am upgrading an older D6 site to D7. Way back we made the mistake of creating separate image fields for different content types. So instead of just creating a field field-image and reusing it, we ...
1
vote
0answers
9 views

Rules help to get contact_id from crm-core

Having a hard time trying to create a rule to 'Clear URL(s) from the page cache.' Specifically I want to clear the path - crm-core/contact/[contact_id]/activity/[activity_id] example: ...
1
vote
0answers
14 views

Data comparison, compare order total with custom field?

I have multiple restaurants with each another value for minimum order price, this is a custom price field in the content type "Restaurants". I would need to make a rule where the total order amount ...
0
votes
0answers
7 views

How to add “view mode” to a Rules Component?

I've been trying everything I can think of, but I cannot get Rules to provide view-mode data for me to work with when creating a Condition component. I can set this up with regular rules just fine, ...
1
vote
1answer
16 views

Is there a way to trace PHP errors logged from Rules?

Occasionally I'm seeing an error in the error_log [10-Apr-2015 10:16:45 America] PHP Parse error: syntax error, unexpected 'Some text' (T_STRING) in ...
1
vote
1answer
25 views

Rules won't let me change some node properties

I am trying to create a new rules component (action set) for publishing content that has been unpublished and I cant seem to set a few of the node properties. I will either use Flag or Rules Link to ...
0
votes
2answers
16 views

“Can't create table errno: -1” when trying to create the cache_rules table on D7

I'm having a very strange problem. I have a website on Pantheon (Nginx) that I attempting to import into my local dev environment, but when I import, it is failing when it gets to the cache_rules ...