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

2
votes
0answers
21 views

Is there a Drupal module to notify admin if no content has been created for X period of time? [on hold]

I was trying to find a way to do this with Rules but no luck. We have an aggregator site that uses feeds and needs a feature to notify the admin when no content has been created for say 10 min.
0
votes
0answers
10 views

How to create a Webform using Rules?

I have been experimenting with the Webform Rules module however I cannot find a way to create a Webform using only Rules. In Rules there is an action for "create entity", however Webform is not one of ...
2
votes
2answers
55 views

Set author to the node automatically whenever the new user registered and also automatically authenticate the user

I have a drupal site with content type as people, in that content type I have one field name as email. What I want to do is, whenever the new user is registered, I want to check the user email with ...
0
votes
2answers
23 views

Convert node data to pdf via Rules

I have a project plan content type. I would like to be able to change the "start date" field value to the current date, and set the "deadline date" field value to 2 weeks after. Then I would like to ...
0
votes
1answer
11 views

How to trigger email by comparing date value in node using rules?

I'm using Drupal 7, with Rules and Rules Scheduler. I have a content type "Tutorial Class", with fields as below: Class Date and Time Feedback requested (Radio button: Yes/No, default is no) I ...
0
votes
0answers
5 views

Can Rules module enable reward of userpoints to referrers whose leads have completed a rules-directed autoresponder-style email series?

My setup is basically this: [1] The 'user referral' module creates a referral link on the user account. Leads use this referral link to sign up. They receive some userpoints when they sign up. [2] ...
2
votes
2answers
28 views

How to integrate an exported Rules component in a custom module in Drupal 7?

i have created list of component fields in a Drupal 7 module, copied the exported Rules code and then pasted it into our custom module But it is not working. Any ideas how to get it to work? This is ...
0
votes
1answer
10 views

Drupal Commerce product sale price using Rules

I tried Rules like explained here enter link description here. It works but when it comes to checkout, order total amount displays 0. I've got no clue why. Here is my rule: { "rules_sale_price" : { ...
0
votes
0answers
9 views

In workflow how to rejected a product and display the rejected product to user

I am using workflow for publishing the product uploaded by user. I have two types of user authenticated user and moderator user, where authenticated user role is to upload a product and moderator user ...
0
votes
1answer
16 views

EntityFieldQuery in rules - no result

I try to set a new variable in rules. I try to get nid of a node selected by efq like this: <?php $termid = $node->field_terms['und'][0]['tid']; $query = new EntityFieldQuery(); ...
2
votes
1answer
50 views

How to use the Rules module to publish all nodes authored by a user when the user's role changes?

I'm using the SMSFramework module for my user validation, I have a rule which changes user role to "Confirmed" when the user approves his cellphone number. That means then, every node that the user ...
3
votes
1answer
43 views

How to check in a rules condition if an image field has value?

Is there any way to check if a field has no value (image field) after saving the content in Rules? I tried Data Value is Empty, but it doesn't work! Output of the rules: { ...
0
votes
1answer
17 views

Rule for allowing purchases based on country

I'm running a commerce shop where we're gonna sell stuff we don't have worldwide rights to. By using the countries module I've ticked of which countries we can sell each product in by having a ...
1
vote
0answers
31 views

Is there a hook for rules which I can use in my module to check if a specific rule has been fired?

I want to run some code to add php varible in js file just after my rule run. Rules doesn't support adding js. I can make action to rule using hook_rules_action_info but that does not work because ...
0
votes
0answers
19 views

How to add php variable to js file in Drupal 7 using rules? (Not From template file or theme ) [duplicate]

We can add variable to js file like below from module but is there any way to do it thorough rules? (modulename: custom_notify) drupal_add_js(drupal_get_path('module', 'custom_notify') ...
0
votes
0answers
9 views

Automatically import the information fields when creating new content

When working with drupal I have a problem but do not know how handle. I created a content type and then assign rights for anonymous users are allowed to create that content. In the type of content I ...
0
votes
1answer
27 views

Choose specific format for hms field token

I'm using a token to include an hms field in an email sent with Rules. I'd like to include the hms field in the format m:ss, but it's displaying as seconds. I've tried enabling the custom display ...
2
votes
1answer
25 views

Multi action in rules drupal 7

How I can add actions in the rules in which they have a relationship with each sequentially. I mean Action sequentially pass data to next action and in next action I can use passed data from previous ...
1
vote
1answer
24 views

How to implement a trial membership using Organic groups?

I work on a Drupal site with the Organic groups module, where users can create account. When process for creating an account is finished user have access to a specific group and should have og role ...
0
votes
0answers
8 views

Create a unique entity based on email field in a node and email the node edit link to email

I have two content types an online application form and the referee form. I have setup a rule so that when you create an online application form node it then generates a referee form node. The ...
1
vote
1answer
47 views

How to send email to multiple recipients on creation of new node using rules module?

I have created one node type. Now, I want to send an email to multiple recipients on creation of new node using rules module.
3
votes
2answers
111 views

How to use the Rules module to implement a custom redirect for an outdated URL?

I used to show content from a catalog via Views accessing an external database, so that all of the URLs would be something like /content?name=[name]. For various reasons, I've opted to import the ...
1
vote
1answer
15 views

How to send an eMail for different fields (dates)?

In Add user page i have added extra fields like **1]date of orientation,2]out of date,3]anniversary date fields,**and i want to remind the users by sending a mail on all the above mentioned date, but ...
0
votes
1answer
13 views

How to show a place holder block if a view is empty

I have a site that has multiple inventory views. When a view is empty (no items to list) I need to display a block that tells the user to check back later. How can I do this?
0
votes
0answers
14 views

Problems importing Conditions of a rule component

I have generated a feature which exports my tax rate rule component for Drupal Commerce. However, it is not importing the Conditions of the rule for the component of the tax rate. It creates the tax ...
-1
votes
0answers
44 views

Why does the Rules module not recognize my custom module?

I have a custom module - memberships. It contains an entity membership_request and related CRUD features. I need to send an email to site admin whenever new membership request is created. I am ...
0
votes
1answer
28 views

Set a value from one text field from one content type to another text field in another content type using set data value in rules

I have two content types A and B and I have two rules. I am trying to add the text put in the A text field of content type A into the B text field of content type B. On rule two I am using the set ...
1
vote
1answer
22 views

How to get field values in rules condition from fetched entity

I have a content type "Event" that's linked to a registration type. Inside rules I want to trigger the action only if a field value from the host entity is "Open" (it's a checkbox field). Under ...
0
votes
1answer
16 views

Drilling down into an Entity Reference Field in Rules Actions

I have the following setup where I have 2 content types called BRIEFS and IDEAS. On BRIEFS, I have a list of users selected in a field called brief_recipients which is a user reference field. IDEAS ...
1
vote
0answers
24 views

How to set all subusers created by a user, or their role, to expire on a specific date

I need to create licensing functionality for a website. Part is done: via the subuser module, I can set up a licensing admin who can create a certain number of subusers that function as licenses based ...
0
votes
1answer
35 views

How can i send a mail to specific user when workflow state is changed or changed to particular state?

I want to send a mail when workflow state will change from creation to pending,from pending to approval and from approval to published. How can i achieve this. I have tried with rules but it can't be ...
0
votes
0answers
11 views

Add multiple cart in drupal 7

I have used drupal 7.38.In my site I have used two type of functionality product and product services.So I wont to add different different add to cart functionality for product and product service. I ...
2
votes
2answers
41 views

How to implement bulk pricing/discounts with Drupal Commerce?

I've been trying to find a way using Drupal Commerce to be able to give discounts on individual item prices based on quantity. For instance: 1-9 units of product A: $1.99 per unit 10-19 units of ...
1
vote
0answers
11 views

Rules compairing node with other nodes when created and fill in a field of both nodes depending on the values

I have been looking for more then a week to do this kind off stuff. there is a content type with 3 kinds of fields field A value can be a b c field B value can be x y z field C value can be 1 2 3 ...
1
vote
1answer
16 views

Emailing a bunch of users selected from a user reference field

I have a node that lets me select multiple users in a user reference field. I also have a rules setup to email the author when someone makes a comment on that node. Now, how do I also email the ...
0
votes
0answers
8 views

Card on File Recurring - Apply a filter to fetched recurring orders

With the cardonfile module comes a submodule 'cardonfile_recurring' that provides a rule to charging pending recurring orders. What I'm trying to achieve: I want to filter the list of recurring ...
0
votes
1answer
17 views

What's the difference between 'commerce-line-item-unchanged' and 'commerce-line-item'

In drupal commerce rules there are selectors like 'commerce-line-item' and 'commerce-line-item-unchanged' – what is the differnece between them? When should i use the one or the other?
0
votes
1answer
47 views

Can I edit Content Y within Content X Edit Form using Rules?

I have created a content type VIP PAGE, and another content VIP IMAGE. Now I want to allow the user to upload 5 VIP IMAGES at the same time as creating the VIP PAGE content. So what I did was to add ...
0
votes
1answer
23 views

Unique violation when trying to create field collection in Rules

When I try to create a new field collection for a node I just saved, I encounter following error: PDOException: SQLSTATE[23505]: Unique violation: 7 ERROR: duplicate key value violates unique ...
1
vote
2answers
30 views

How to make an OR statement in rules?

I am using Rules with Rules Once Per a Day. Although Once Per a Day is not part of the default Rules, the general core of my question applies to default Rules. I want Rules per Once a day to activate ...
0
votes
0answers
9 views

Drupal Ubercart TAX

I am trying to use the Ubercart 3 Store Tax Module. I have set the condition AND Input Parameter is Order order:products:0 1) Entity has field (Custom Boolean field) 2) Data Comparison ...
1
vote
1answer
23 views

Why do all my products (in Ubercart) get taxes applied after upgrading my Rules module?

I am using Drupal 7 and Ubercart (version 3). I try to add TAX to only certain items which has a particular Taxonomy Term Selected. This functionality worked fine in previous version of Rules 7-2.8 ...
0
votes
1answer
41 views

Email notification or several reminders at different time points

I have content where in I have to send the email notification or several reminders at different time points: Ex: After saving content, email should send after 1month. then after 6 months for the same ...
1
vote
1answer
31 views

What is the correct way to update existing module's rules programmatically?

I want to provide an update for my custom module, which also has some rules provided via hook_default_rules_configuration. Now, how can I update those existing rules? Can I re-import them? Override ...
0
votes
0answers
23 views

How do I delete an upload from an order?

I have a situation where the customer uploads a file with their order, using a file field attached to the order. The only way currently on our site to delete the artwork is to delete the order or ...
1
vote
0answers
10 views

Rules Loop does not fully loop through checked taxonomies

I have a content type that has a field which references my Country taxonomy. The field settings are set to unlimited so it is displayed as checkboxes. The country field is also displayed on the users ...
1
vote
1answer
26 views

How to execute a specifc job after some time interval like 5 minutes?

I want to perform a job after 5 minute, I explain what I mean with an example: "I connect to bank gateway, register my order there,they give me transactionId and told me I should verify transaction ...
1
vote
2answers
39 views

Add product variations to product display with rules

Using RULES, can anyone point me in the right direction to add lots of product variations to existing product displays? Everything I've researched seems to be centered around creating the display ...
0
votes
1answer
68 views

How to find “next day date” (xx/xx/xx 00:00:00) from a given date & time value in Rules?

I'm trying to figure out how to find the next day date (xx/xx/xx 00:00:00) from the given date&time value in rules without the use of PHP filter module. Played with offset already - couldn't get ...
0
votes
0answers
12 views

How do I lookup one value from a View and return a corresponding value in Rules?

I have a node type with two fields: Customer (entity reference) and Type of sale (list text). I have a view (table) that shows the types of sales and the count of those sales using the customer as a ...