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

Rule to send an email when role is changed

I'm trying to send an email to users after their role has changed. So far, the rule is triggered every time the profile is saved (even without role change); I suspect that the data comparison is not ...
0
votes
0answers
5 views

Add user to Organic group after commerce product order with rules

I would appreciate any help, I have been searching for a solution for over a week now. I have tried this tutorial https://drupalcommerce.org/blog/10809/selling-organic-groups-using-drupal-commerce ...
0
votes
1answer
13 views

Rules action before the content is viewed [on hold]

I have the same problem as the below link. https://www.drupal.org/node/2461837 . Can anyone please help me with the ideas.
0
votes
0answers
6 views

How to examine changes in a multivalue reference field with Rules

I have a Courses content type containing a multivalue reference field to the Teachers. At the same time each Course is an Organic Group (in order to handle the access permissions separately) I'd like ...
0
votes
1answer
19 views

How can i populate data from a reference node into another content type?

I have two content types. hospitals and referral form. I would like to pull data from the hospital form automatically, example hospital name, address, contact etc when the user fills in the name of ...
-1
votes
0answers
10 views

After click on send-email action in rules, page gives blank screen [closed]

I am trying to send a promotion email after registration that's why we create a rule to send email. But problem is if i select send-email in action, page gives blank screen. nothing happens. This is ...
0
votes
3answers
31 views

Redirect to page before login

Now i know there are some ways that a redirect on login can be setup, ie using views etc, but i think my issue maybe a bit more complicated. When a user accesses a node for example where they are ...
0
votes
1answer
13 views

How do I get all the users in an organic group with specific role programatically?

I'm trying to use rules to send an email to all users with a specific role in an organic group when someone requests to join the group. This code almost works. It returns all users from a specific ...
0
votes
1answer
6 views

Rules - Check if coupon has been added to an order

I need to check in Rules if a coupon has been added to an order as a condition. I have tried using the ENTITY HAS FIELD option in Rules and then a data selector of Commerce-order and to then look ...
0
votes
0answers
7 views

How do I generate a rule that will post to specific Twitter accounts?

I'm trying to create a rule that will publish to twitter depending on what the group is. I want it so that if the nodes group ref is set for a value to send to a specific twitter. If there is no ...
0
votes
1answer
34 views

How to compare a field value with each title values?

I need to compare two field values. Let's say I have a content type named "Specimen". The content title is the accepted name of that specimen. A second field, named Synonyms, can be filled by users ...
0
votes
2answers
16 views

How to loop over a list of Organic Group users using Rules

When a user requests to join an Organic Group, I want to send an email to the group's admins. I've found this answer ...
0
votes
0answers
9 views

How to create a 'universal' node-add form where you can select the content type it will be

Goal: A form that submits the form fields as parameters to a Rule. This is used to create a 'universal node add' form block, where users can insert - Title - Body - Groups Audience How it works: When ...
0
votes
0answers
6 views

Commerce: Disallowing products of different types in cart

I want to disallow existence of different product types in the cart. So I thought to create two rules: One to remove a product from cart if there are already products of other product types in it ...
0
votes
0answers
5 views

Access term reference's field in Rules

I am creating a node (via Feeds) with a term reference field (Department). The Department vocabulary has a text field for email addresses (Email). So, for example, the term "Business" has a field with ...
0
votes
0answers
11 views

How to Setup Rules to Add a Flagged File to a New Node

I have a view that is showing a list of Files. Each file has a flag on it and when that flag is clicked I want to use Rules to create a new node that has that file populated in a File Field. Help is ...
0
votes
2answers
53 views

how to setup rule events for before/after video is played?

How can I set up a rule events for actions to occur before and after videos are played in a node? Thank you for any tips/ help you can give!
1
vote
1answer
14 views

How do I get rules to select a random node?

I'm working on my cron rule that will post to twitter every cron run. Thing is for this rule I need it to post a random node that either conforms to specific values in certain fields, or does ...
1
vote
2answers
19 views

How to send to redirect a used after creating a node and display a message?

I want to be able to re-direct a user after created a node from a specific content type and this display a message. How can I accomplish this ? Its the best way is by using rules modules or custom ...
0
votes
1answer
12 views

Drupal 7 Commerce Stock Decrease stock when reverting cancel the order

I have used drupal commerce module. I have rules to increase stock when the order process is cancelled and decrease the stock after completed the order process. When i cancelled the order status, ...
0
votes
0answers
16 views

Flags, rules and node type situation

got a situation with flags, rules and node type... I have an event website where people can add events to their own calendar. Once the event is completed, they can then edit their "registration" to ...
0
votes
1answer
23 views

How do I create a rule to run during every cron run?

I'm creating rules for posting to twitter. However I need these rules to run every time cron runs. What is the best way to structure these rules so they send the appropriate post at the appropriate ...
0
votes
0answers
15 views

how to restrict heartbeat activity messages per roles?? i am using drupal 7

Message display access Defines to whom the message is meant for and who is entitled to see the message. Limit this message with roles anonymous user authenticated user administrator moderator Guest ...
0
votes
0answers
16 views

Userpoints deducting for nodes which are marked with flag

I have a node which is published. I have a global flag, which user suppose to mark to make his nodes visible in Views. This is easy to do. But then I need to charge 40 points every day since node is ...
0
votes
1answer
10 views

Drupal 7 - Include email attachment in new content Rule

I'm trying to send an attachment within a rule I've set up for new content notification. I have the requisite modules installed: Mail System, Mime Mail, etc. I've set the rule up to send HTML mail ...
0
votes
1answer
19 views

How can I use webform to upload assets and create a project that can be assigned to different users

I am trying to put together a creative request form that a client would fill out. A studio manager would then follow up and assign to a project manager. I am using webform and rules as a starting ...
0
votes
1answer
63 views

First four free - changing product pricing based on cart quantity in Commerce using Rules

Brief: Product with SKU "sample" has a unit price of £0.00 Once quantity > 4, product unit price is £2.50 First four remain free. E.g if five in cart = (4 x £0.00) + (1 x £2.50). Currently I have ...
2
votes
3answers
102 views

I want to send a confirmation mail on event of submit button in webform?

I have a webform and a E-mail field in it Is it possible to have a confirmation mailed out to the person registering? (as in, is it possible to have the functionality also worked in?)
1
vote
1answer
14 views

How to run commerce_order_save() without triggering any rules?

I need to run commerce_order_save() on several Orders in loop but without triggering any Rules. Is that possible ?
-1
votes
1answer
21 views

Post to anonymous user's Facebook Wall with rules

I wonder what is the best way to implement post to User's wall for anonymous users. All solutions I came across seem to require creation of a Drupal User Account (using FB Connect) first. I need a ...
1
vote
0answers
11 views

How to apply regex filter to forum signature using Rules? [closed]

In D7, I'd like to disallow some spam urls and strings to be used in Signatures for Forums . How can I acheive this using Rules?
3
votes
0answers
56 views

How to make new field type visible to rules

I have installed the Examples for Developers module (https://www.drupal.org/project/examples). I have enabled the Field Example submodule. It creates a new field type called 'field_example_rgb'. I've ...
0
votes
1answer
18 views

How to update/change anonymous author to authenticated current user using rules upon logging in?

This is the case: Anonymous user can create nodes Anonymous user will leave their email address Anonymous user must register with the same email to "claim" the contents they created When that user ...
0
votes
0answers
10 views

Can I execute/call module on Rules PHP evaluation? Is there a Drupal way for that?

Is it possible to use Rules PHP evaluation to call/execute module? Does it "know" that okay this module handles that? Maybe it needs to be invoked or similar? Or should I just ...
0
votes
0answers
17 views

How to stop a loop in rules?

There is no action in the rules for stoping/terminating the loop. Any one know how i will stop/terminate the loop? I tried the with the custom rules action also in which I tried the following but it ...
0
votes
1answer
26 views

How to redirect “relationships/received” to "user/[requestee:uid]/relationships/received?

(D7) When a user sends a friend's invitation to another user (User Relationships) the other user, once he logs in, sees a green message that informs him so-and-so sent him a friends request. There is ...
0
votes
0answers
12 views

How to validate and store Drupal commerce Checkout Date and Time

I am working on catering services Drupal Commerce website in which each catering companies having open hours(for eg: 8 AM to 11 30 PM) with Open, Busy and Closed statuses. The objective is that, when ...
0
votes
0answers
16 views

Commerce / Rules Adding an additional product (or extra fee) for every 10 products of a certain SKU

My company is trying to implement a complex pricing scheme for drupal commerce that is as follows: For every 10 products of type A you automatically purchase product B (or the total price is ...
0
votes
0answers
9 views

Where is the Rule component_rules_payment_component_delete_all defined?

In Commerce Kickstart 2. Can't seem to find this code.
0
votes
0answers
7 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
18 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
16 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
13 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
8 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
18 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
9 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
36 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
8 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
14 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 ...