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

Users get a new password detect forced logout

I want to create a rule, When the user changes the new password, the system will be forced to log out please his new password to login I know the event to choose After updating an existing user ...
0
votes
0answers
7 views

Drupal 7 Rules - After saving existing content not triggered when updating taxonomy

I have the event calendar module installed (https://www.drupal.org/project/event_calendar). The module allows me to create an "event calendar" content type. Once created, I'm able to "approve" or ...
0
votes
1answer
27 views

Delete content in a user registration field after X number of days

I am looking for a way to delete the data in a custom registration field (field:transaction_code) after 30 days. How can this be achieved? Let me explain better. I want users to get the registration ...
0
votes
1answer
11 views

Rules Data Comparison Keeps Evaluating as False [on hold]

I'm trying to do a Rules data comparison and it keeps evaluating as false. I've got a list text set as a series of checkboxes (two of them). I'm looping over each user profile (as a part of ...
0
votes
0answers
18 views

Is it possible to insert value in field using rules?

How can I insert data in database using rules, I created entity type job and added some fields. I want to insert values inside those field when the flag button is clicked. I tried "set a data value" ...
0
votes
0answers
18 views

Tokens are not displaying in email

I have installed the Token module in my project and created one trigger that is birthday trigger. when I set action on that trigger then it has not replaced tokens, it displays as it is. If any ...
0
votes
0answers
2 views

Send email containing content entity data to a user after file download trigger

I have used rules a bit and this should be obvious! What am I missing? I use the trigger "After File Downloaded" (which is either from core?? or from the module pubdlcnt ... it exposes only the file ...
0
votes
0answers
6 views

let user join a group only if he is member of another group

I mean for example in a sub-group structure: Group1 -Subgroup of Group1 I want to validate that if user wants to join "Subgroup of Group1" he must be member of Group1 how would be the rule? Thank ...
0
votes
1answer
34 views

Publish content on user unblock event Drupal 7

I know that this is most probably and easy question but I simply can't get it to work. I have a custom module which generates a form to create a content (unpublished) of a certain type and also ...
0
votes
1answer
29 views

Help understanding rules_invoke_event

So, I have the need to use rules_invoke_event(), however when I attempt to it does not trigger the event. The Rule I created is in Drupal through the Rules UI. However, I am trying to trigger it ...
0
votes
0answers
5 views

Rule to change ubercart role expiration when role is granted

I need to 'standardize' the expiration date of a ubercart role as soon as the role is granted. I think I understand what the events and conditions should be. I can't figure out how to create the ...
0
votes
0answers
10 views

How is a value in “key|value” pair accessed using a drupal function in a webform component?

I need to load the value (title) of the "key|value" pair using php for webform results in rules. I.E. I would like to display "Biography/Memoir" when the array has key "genre_biography." Is there a ...
0
votes
0answers
13 views

Using rules to notify a role, based on shared taxonomies between users and nodes

I'm trying to use Rules to send a notification email based on some fairly complex criteria. A specific node type (we'll call this Meal) is created using a taxonomy of (Cuisine Type), where the ...
0
votes
0answers
3 views

Commerce - how to only show license information for downloadable product variations?

I've got book store in which I sell paperbacks and ebooks. For the ebooks I'm using the Commerce File and Commerce License modules. The issue is that the 'Checkout complete' page always shows license ...
0
votes
1answer
17 views

Loop over first three items of a list in Rules

I have a list and need to loop only over the first 3 elements of that list in Rules, but I cannot find the option to do this. It seems to be more complicated than I had thought.
0
votes
1answer
17 views

View: No Result = Last

I have a field 1 Name and another field 2 Year and have it sorted in Views first by Name and second by Year. If Year is empty I want it to be placed last under each letter. So lets say I have 5 James ...
0
votes
1answer
21 views

How to use Views Rules?

I've looked here: https://www.drupal.org/project/views_rules but can't get past 2.2 Add a "Rules" display. I don't know what that means. I've installed Views Rules but can't find any Rules option ...
0
votes
0answers
14 views

Trying to invoke a Drupal rule from custom code using rules_invoke_event

I am using the Registration Module 7.x-1.3 and I built a rule in drupal. Basic Drupal Rule: After updating an existing registration Content is of type:Live Event Entity has field: Entity: ...
0
votes
0answers
13 views

Drupal commerce: Custom coupon rule

Hello I have Commerce Coupon 7.x-1.0-beta7 I need to create a custom rule for a coupon: For example: User want to buy 4 products I want a coupon that apply 50% of discount for only the 3 first ...
0
votes
0answers
7 views

views rules and views global filter: how to configure parameter in rules action?

I'm using Views Rules and Global Filter and I would like to use "Collect views result rows" within an action in Rules, which makes it necessary to configure the parameter of the global view. Is there ...
-1
votes
1answer
31 views

php - get value from custom field [closed]

I try to get a value of a text field inside rules php like this: <?php $glo = $node->field_email['und'][0]['value']; print $glo; ?> But getting error: Notice: Undefined index: value in ...
0
votes
1answer
38 views

rules - check if email is in use

I would like to create user account using rules, after anonymous user creates a node and inputs his email to a email field. Before that I need to run a condition if the email is already in use. What ...
0
votes
0answers
17 views

Rules integration with rate module

I am using rate module and I have created a rule which is fired on the event: User votes on a node(photo) with the condition "Check the value of the vote" is "1". User votes up the node (in my case ...
0
votes
0answers
16 views

How to replace a Token in Rules' PHP?

I'm trying to grant Userpoints to users with a Rule. The Rule first calculates two integer values 'New value' and 'Old value'. Debugging this numbers shows that there's no problem with them. ...
0
votes
1answer
16 views

Subscription to User-saved searches

Required functionality: User can filter nodes based on certain relevant custom fields. User can save filter criteria as a named set. User can view and edit these sets of filter criteria. User can ...
-1
votes
1answer
31 views

Lost - Passing Rules variable to function to return true [closed]

I am trying to get this Rule to return true to trigger an email to the author of an event once registration has hit capacity. I have my rules_condition_info and the function below. My problem is, not ...
0
votes
0answers
15 views

Trigger Rules when Ubercart order is edited

I am trying to figure out how to trigger a rule when an Ubercart order is edited (for example, when an admin user views the order, clicks the edit tab, changes some info on that page, and then clicks ...
0
votes
0answers
21 views

How to create a Rules action set to calculate a sum of integers in a Field Collection?

I'm having a Field Collection 'My List' with two fields: 'Amount' (integer) and 'Date' (date). I often count the 'Amount' items with Rules like this: Add a variable: Parameter: Type: Integer, Value: ...
0
votes
0answers
20 views

toggle a flag on and off when javascript onclick action

Is there a way to create a flag that will toggle on and off when a user clicks a jQuery/JavaScript "onclick" drop down menu is clicked for the first time on a page? Perhaps a way to create a rule ...
0
votes
0answers
6 views

Properties of entity is setting zero or empty

I have implemented hook_entity_property_info into my custom module to add custom properties with Order of ubercart. Code in custom_module.info.inc. function custom_module_entity_property_info() { ...
0
votes
1answer
16 views

Rules: after saving new content and after updating existing content both triggered on node create

I define two rules that should send an email once new node has been created. And second rule once user updated his content. The problem I am having here is that both rules trigger in one time when ...
0
votes
1answer
9 views

Custom field Rules implementaion

I added new "Markup" field into commerce_product table using custom module. Now I need to create a rule to calculate (sell_price=prod_price*markup), but I can't acccess Markup field throught Rules ...
0
votes
1answer
28 views

send a message to users who flagged a taxonomy term

For Example term name: Toys I want to send a message to users who have flagged the Toys taxonomy term only when a new node is created and contains the taxonomy term of Toys.
0
votes
0answers
22 views

How to use exec() to run external software in drupal?

i am trying to use exec() function to run external software. this software is an .exe file. code that i created is given below $command = 'php sites\all\modules\wkhtmltopdf\bin\wkhtmltoimage.exe ...
1
vote
0answers
23 views

How do I send an email to users who have been inactive for 30 days with a condition

I used the answer in How can I send email to user that is not logged in since 30 days? to successfully set up an action set component that would email the user and a rule that would schedule that ...
0
votes
0answers
35 views

PHP evaluation in rule to detect empty view

I have a newsletter going out each day that lists the most recent articles. The newsletter is using a template file that I have created with a view inside. Everything seems to be working fine, but the ...
1
vote
1answer
33 views

How to combine Views, Rules and EVA to record submission?

I have a Drupal 7 site and I'm using Views, Rules and EVA. I have a specific requirement that I am sure can be achieved with the modules, but I am having no joy configuring a working process. I have ...
0
votes
1answer
23 views

Check if a list has a new element

I'm using the Rules module and I would like to make a rule to check wheter a new element has been added to a List in a Node. First I have tried "List Count comparison" but it can only compare a list ...
0
votes
2answers
37 views

Schedule a rule to repeat every week at specific time not working

I am sooo close to getting this to work, but cannot figure out why I cannot get my rule to repeat. It's driving me nuts. I created a component that has an action item to generate send a newsletter ...
0
votes
1answer
23 views

Create a product after form submission using commerce and rules

I want to set up a rule which would create a product when the user saves a submission form. The submission form is embedded into a simple node (using entity reference) presenting the "product" being ...
0
votes
1answer
29 views

How to copy select list value from a webform submisison into select list field new node?

This is the scenario: A webform with the following fields Question -> Textfield Category -> Select options (Listbox) Listing vocabulary HETCAT A content type Question with these fields ...
0
votes
2answers
20 views

Feeds : creating a node dependencies at importation

The Excel file I'm trying to import is comprised of two part, the first three columns describe a node that might or might not exist currently, and the three last columns are my entity informations. To ...
0
votes
1answer
16 views

Resize Image for more than one Image Size profile automatically

Here is my problem. I have field BigPicture in a my Product Content Type. Is there a way that When I upload an image from BigPicture Field that the current picture automatically resize in more than ...
0
votes
0answers
7 views

Possible to Trigger a Rule based on a Value Found in a File?

Would it be possible to trigger a rule based on a value found in a file? Perhaps have Feeds read a csv or xml file and instead of a new node being created, a rule is triggered instead? Any thoughts ...
-1
votes
1answer
39 views

Rules - New events inside code not shown in interface

I am trying to insert a new event inside an already existing module. The module is Nodeaccess https://www.drupal.org/project/nodeaccess it's used to grant users edit/delete permissions to single ...
1
vote
1answer
34 views

Send mail to selected users

I want to send mail on webform submission to selected users, Suppose i'm user and admin must select users from my account that if i submit webform then how many user's can get that notifications of my ...
0
votes
2answers
30 views

D7 Rules - User Profile Field in Send Email Action

I'm using D7 with Rules 7.x-2.7. I am trying to create a Rule that will email and BCC all users of a particular role when a node of a certain content type is created. I've added the event: After ...
0
votes
1answer
7 views

Empty <li> items within Rules UI

Has anyone encountered behaviour similar to this and have any idea how to resolve it? I've checked the issues for Rules and can't find anything similar. I've run update.php and flushed caches, ...
0
votes
2answers
24 views

Caching issue with class extension of RulesDataUI

In my custom module I am trying to extend RulesDataUI class as below in the code which works fine just after clearing the caches, but on the next page reload I get warning as "Warning: ...
0
votes
1answer
22 views

data selector not working in custom Module

I am working in a module and I have added custom date data attribute to ubercart order. Now, I would like to create a data selector in rules for custom date attribute of the order. I have ...