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
5 views

Pull Admin Comments into Ubercart with Rules

How do I pull an Ubercart admin comment in with a rule? I've got an ubercart order and I'm trying to do a check to see if it was created programmatically by an admin, but the way I was going to do ...
0
votes
0answers
6 views

Highest performant way to edit a views field value inline

I have a complex project management site, which requires performance being optimized for each functionality, especially the way views fields can be edited inline. It has a task list view in which ...
-1
votes
0answers
16 views

how to update a field value and create new node?

I want the users to have the ability to update a field in some existing nodes and after that new nodes to be created automatically. This field applies ONE value. I don't want to overwrite existing ...
0
votes
0answers
10 views

Rules: After user registration, create 1 product and make it reffer to the user account automatically

I'm using D7. What I want to do is to create a product and make it refer to a field from user account after user's registration. And the user has a particular role after he registers. I just need 1 ...
0
votes
0answers
12 views

entityform unique field value

Webform has a feature that can verify the uniqueness of a value submitted in a field. How can this be achieved with the entityform module?
0
votes
0answers
7 views

Add user points to author for every up vote received to content using Rate module (D7)

I saw the post Add user points for every upvote But that was for rewarding the voter, I want to reward the author like Reddit karma. Does anyone know how to do this with Rules? Vote integration for ...
0
votes
1answer
14 views

Change role of users after deleting referred content via rules

I added an entity reference field to user referring to a type book. I also created a rule that each time e user update that field, selecting one book, his role changes from authenticated to reader. ...
0
votes
0answers
6 views

How can I set a variable which is totalled in commerce cart refresh?

I have created a set of Product Pricing rules in Commerce to calculate and accumulate a subtotal based on some fairly complex calculations of the products in the cart. I want to use a global variable ...
0
votes
0answers
26 views

rules_invoke_event() not working with 'user_login'

Very broadly, I want to know how to use the rules_invoke_event() for the event listed in the admin UI as "User has logged in". The parameters I passed to the above function were 'user_login' and ...
0
votes
0answers
4 views

How do I create a Component Rule to add a variable to a Commerce Line Item based on a Product field and Taxonomy?

Another way to attack the same problem: In Commerce, how do I show a subtotal by product category in the Cart? I would like to create a Component Rule which I can trigger from a Commerce Price Rule. ...
0
votes
0answers
11 views

In Commerce, how do I show a subtotal by product category in the Cart?

We want to offer a Userpoints Discount based on a Product Category. Eg. the customer purchases $5,000 of items, but only $2,000 are eligible for the points. So, we need to keep track of a separate ...
0
votes
1answer
24 views

How can I send an email to Administrator when Users change their name?

We are using LoginToboggan. How can I send an email to Administrator when Users change their name? I looked at Rules, but the only Rule action which seems close is "After updating an existing user ...
1
vote
0answers
19 views

How to prevent rules executing a rule after another rule was executed?

I have a Rule that does a few things when the user is first created ("After saving a new user account"), it interacts with a remote web service which provides a value, and then I save that value in a ...
0
votes
2answers
8 views

Commerce Shipping - arbitrary calculations

I'm using Drupal Commerce to create a simple shop and I wish to add shipping cost calculations based on the weight (in grams) of items in the cart. I have set a weight field on each product so I can ...
0
votes
1answer
17 views

how to update my custom table after execution of rules

i have created a table as follow <?php /** * @file * Implements hook_schema */ function core_sms_schema() { $schema['core_sms_details'] = array( 'description' => 'This table is used ...
0
votes
1answer
28 views

QR Barcode automatic creation from Nodes new or previously created

I wish to create automatically created barcodes from newly create Node content and also Node content already created in the Drupal V7.3x system. Further to my previous posting Barcode Creation I can ...
0
votes
0answers
14 views

how to trigger rules when a new item is added to a view?

I would like to trigger a rules action when my proximity map returns new listed nodes. I can include a VBO for the proximity map, and set a rules action for 'VBO returns a list" with 1 or more items. ...
0
votes
0answers
11 views

Rules Link: how to immediately switch link label at click

There are two issues here: - to switch link label at click - to make the label show immediately at click and process the rule in the background This all in order to speed up things for the users. I ...
0
votes
1answer
13 views

Can I create a keyword filter on emails sent from an email form with Rules?

Can I make a Rule that will check content of an email sent from a contact form and block the send if a condition is met? I was hoping I could set up a Rule to react on event Before Email Send, or ...
0
votes
0answers
21 views

add action to a rule programmatically

I want to add my custom action to defined rule('commerce_checkout_new_account'), I have found here. How can create my action, but I don't know how can I add it to defined rule by another module ...
0
votes
2answers
20 views

How to create a select list of which the selected item is used as parameter in VBO rules component?

It's a common scenario, but I couldn't find a solution yet: I have a view (a list of tasks) with checkboxes (views bulk operations) I want: 1) a dropdown select list of taxonomy terms 'Priority' ...
0
votes
0answers
7 views

Rules module problem with profile2 fields

For users who sign up in my website I create a profile using profile2 module. Every body is able to select its country so I created a field inside the profile called field_country and it lists a few ...
2
votes
1answer
27 views

How do I use AND condition in Rules to add shipping to sales tax?

The default sales tax Component Rule calculates sales tax on all line items... so it was (for us) correctly adding sales tax to products and shipping line items. We started using Userpoints_Discount ...
0
votes
0answers
6 views

Unflag All Content in Group when User Leaves Organic Group

Using Rules, Organic Groups, Flag, Message Subscribe, Message Notify, etc. Haven't had luck getting Message Notify to work for sending emails to users who have flagged nodes in groups. Thus, I set ...
0
votes
1answer
13 views

Commerce - Product and Total Price(s) on summary page not being updated by rule

I am creating an e-commerce website for a restaurant, there will be extra toppings available on pizzas. I have achieved this partially by using taxonomy to create the toppings and by giving this ...
0
votes
1answer
21 views

Change role of indirectly referenced users with Rules

I have two content types: Courses and Teachers (with a node reference field between them) and actual users are connected to Teachers with a user reference field. I'd like to assign users to a drupal ...
0
votes
1answer
15 views

How can I access location information via rules, to include the City of a node in an email?

I have a rule, which works like this: After saving new content, Fetch users who have flagged a Taxonomy term, Loop, send email. The emails get sent perfectly, to users who have flagged the specific ...
0
votes
1answer
14 views

Rules to Flag a node referenced by Commerce Order Line Item

I have a site selling edit access to specific nodes. The site uses Drupal 7, Commerce, Commerce License (selling a Role with edit permission), Rules and Flag. On the Add to Cart I have a Line Item ...
0
votes
0answers
19 views

Need rules to redirect to a URL including query string

Description of the situation: I have created task nodes, and I want to redirect to the previous (source) page after creation of a new task. (I don't want people to see the task node). That page ...
0
votes
0answers
16 views

Setting a User Reference Programmatically in a Rule

Use Case: I have Supervisors creating (authoring) Employee Evaluations and need to give the employees view access to their past evaluations. In the evaluation node I have an existing select list with ...
0
votes
1answer
19 views

How can I set up a Drupal rules action to play a specific sound?

I would like set a sound alert as a Drupal rules action- for Drupal to play a specific sound file eg in audiofield. How can I do that?
2
votes
1answer
26 views

+1 user field after comment is made

I created a new user field to keep count of comments. I want to increase it by 1 after a user posts a comment and decrease it by 1 when comment is deleted. Is there any way I can use rules to do ...
0
votes
1answer
9 views

How to programmatically create forums and containers (not forum topics)?

I need to create containers and forums using rules. If I use the action "Create new entity" -> "Taxonomy term" I got that by default the new term created is treated as a forum, not a container. How ...
0
votes
1answer
15 views

After Creating A new User inside RULES, I can not access to UID

In my rule, I have an action that is "create new entity" with "user" bundle. every thing works fine a new user create with provided information (user and email) it's variable name is new_user in ...
0
votes
1answer
15 views

Trying to using Rules to create page redirects to external links per node, but it's not working

I like using Rules and am trying to create a page redirect, for a certain content type i’ve created. So instead of the user viewing the node, they get redirected to an external website. the site ...
0
votes
0answers
11 views

User Points Rules: Remove points (based on content type)

I currently am using the User Points Rules module to grant points (both moderated and unmoderated) to users for signing up for content using the Signup module. However, for cases where the user ...
0
votes
0answers
10 views

how to access user:userponits field in rules

I have no access from Rules to [points] field or any userpoints field (userpoints module), I have enabled: Rules, Rules scheduled, Rules_ui, Userpoints, Userponints_rules_integration, Userpoints_role ...
0
votes
0answers
9 views

How to send message using Organic Groups Invite?

Hi I am trying to use the Organic Groups Invite module along with the Rules and Message modules to send a message to users containing an option to accept or decline an invitation to a group. I have ...
0
votes
1answer
13 views

Multisites with different database share rules

I create two sites with same code and different databases, but when I activate rules in the second site I can see the first site's rules. I can disable the rules in second site and keep them active ...
0
votes
0answers
9 views

Components are all returning empty values

I am trying to run a rules component as the child to a parent rule and I'm only getting an empty value returned to me. I create the component, the field I will be returning is generated within the ...
0
votes
1answer
9 views

Rules- how to perform processing on cancelled accounts?

I have my site configured to allow users to cancel their accounts, in which case the account is blocked and the content is unpublished. I made a rule to act on the Event after a user account has been ...
0
votes
1answer
33 views

Redirect user to checkout if there is a product in cart

I'm using commerce checkout redirect module in my commerce site, but in the same time I enabled email verification to register, so the user is redirected to user profile page after he log in. I want ...
0
votes
0answers
4 views

Using Rules to post profile pic in gallery content type

I am trying to have a user's profile picture also saved in his photo gallery when he creates his account. For this, I created a rule: Event: After saving a new user account then Condition: NOT Data ...
0
votes
2answers
23 views

Remove users with no created nodes D7

I have a site setup where users create a node as soon as they login from the activation link sent via email. I've recently been getting tons of people signing up but not creating any nodes because the ...
0
votes
3answers
28 views

Why does this rule not appear in the UI and how can I clone it?

I need to clone and modify the following rule: commerce_checkout_order_email However, it does not appear in the UI. I have checked the following paths with no success: admin/config/workflow/rules ...
0
votes
0answers
16 views

Create Advanced Poll choice via Rules

I currently use the latest versions of Drupal core, Advanced Poll and Rules. I am trying to create a Poll via Rules. Everything works fine but I can't set choices to the poll in Rules. There seems to ...
0
votes
1answer
15 views

Why is Rules reacting on Commerce Events multiple times and out of order?

I am having lots of problems with my site because Rules is evaluating Events multiple times, and out of order. For example, the debug log shows that when I add a product to cart, Rules reacts as ...
0
votes
1answer
14 views

Entity references from a view with list of nodes that can be references to nodes that keeps references

I have a package (node with few entity reference fields - one per content type). Example So on package node I can select nodes that are related (one reference per content type). Now I have new ...
0
votes
0answers
5 views

Why does Rules evaluate an AND when there is only one condition?

I am having trouble with a Rules condition that is not returning the expected value. The debug log shows that my condition is evaluated correctly, but then there is an "AND" that is always evaluated ...
0
votes
0answers
15 views

Drupal 7 Create a new account for an anonymous order only for commerce license orders

With Drupal 7 using Rules 7.27, I've installed and set up Drupal Commerce with no real problems. The rule ‘Create a new account for an anonymous order’ works well but I need to add a condition that ...