Tagged Questions

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

How to store og_group_ref to another field and remove value?

I want to store the output of the og_group_ref field in another (dummy) field and then want to remove the last item of that field. Everything should happen after a new group node was saved. I tried ...
0
votes
0answers
8 views

Rules sometimes don't convert saved node to nid

I have a strange problem with Rules. I try to set up 2-directional entity references. It works well with one content type, but fails with another. In the latter case, saved node is not converted into ...
0
votes
0answers
9 views

Hide/Show certain fields with rules based on userpoints

Is there a way to show/hide certain fields using rules and only show those fields by spending userpoints?
0
votes
1answer
9 views

How to troubleshoot Rules when a required variable for an event is not provided?

I'm seeing a strange behavior on my site and I'm trying to figure out how to correct it. I have a rule that triggers on the event After updating an existing user account. This rule uses two ...
-3
votes
0answers
12 views

Consume and output SOAP web service using Drupal 7 Web service client and Rules [duplicate]

I need get data from WSDL service and output into existing Drupal 7 CCK fields. How i can output information from WSDL into existing CCK fields or simply with PHP in templates without or within Rules ...
0
votes
1answer
18 views

Rules Interface unresponsive and odd

I am trying to set up a Rule to check if a user has added one of several states to an address field in a Profile2 profile. So I thought I'd do a Data Comparison. I created a new rule called "Profile ...
0
votes
0answers
5 views

Simplenews and Rules - send all category

I currently have two different content types that are set also as Simplenews Newsletters. The content is imported via Feeds processor from a JSON feed, and I have two Simplenews categories. So ...
0
votes
0answers
16 views

Drupal commerce change status order by admin not fire action rules

Hi this is my problem step by step: User at payment step go to external paypal site -> Order Status: Payment User after paypal payment confirmation NOT back in the site but close browser -> Order ...
0
votes
0answers
4 views

Rules to send mail to specific user of a role based on category of product ordered

I want to send mail to specific user of a role using rules.The scenario is : I have category based product and each category has specific user permission of a role.when a product is ordered of that ...
0
votes
1answer
14 views

Email Customer if Order Contains a Disabled Product

I have Drupal Commerce configured on my site. Customers can purchase tickets to classes. However, if a class gets canceled, I need to notify any customers who purchased said class that the class is ...
0
votes
0answers
9 views

How can I remove the dependency on PHP of rules in a feature?

I am attempting to disable the PHP filter on my site, so I am moving all PHP input in the UI into code. I finished cleaning up my views and panels, and now only some rules remain. Right now, all my ...
-1
votes
3answers
32 views

Change from email id when admin approved user account

I want to change FROM Email id, when admin approved an user account. Currently it is using admin email id. I want to use different email and my admin email id will remain same Any Suggestions
0
votes
0answers
15 views

Tag based on published date

Basically, I'm setting up a website for someone who is going to post one thing per day. I want to provide a way of accessing these articles by week and naming the week: i.e. if a node is published on ...
0
votes
1answer
27 views

Enabling Rules Module broke the site

This is the error which I'm getting Unsupported operand types in /export/web/virtual/xxxxxxxxxxxx/sites/all/modules/rules/rules.module on line 230 Drush command terminated abnormally due to an ...
0
votes
2answers
34 views

Multiple Separators! How?

I've got a field called Name (Entity Reference) that sometimes has 2 values. It would require some kind of Rules I guess. Just not sure how it can be done. I created a taxonomy which has 3 values: ...
0
votes
0answers
18 views

count nodes of two different content type in rules

I need to use rule module and count nodes of a content type A, then count nodes of content type B and after that if count of nodes A is higher of count of nodes B do an action, otherwise do another ...
4
votes
2answers
74 views

Blocking IP Address In Drupal 7 Via Code

I want to know is there any function in DRUPAL 7 that I can send it an IP address as a parameter and it adds this ip to blacked_ips table ?? Indeed I have a rule that contains a Execution PHP action ...
0
votes
0answers
8 views

Commerce: How To Apply Pricing Rules To Imported Orders?

I've created a script to import sales orders into Commerce, Drupal 7.32. Works fine except that it does not apply sales tax to the order. If I edit each individual order and click the Apply Pricing ...
0
votes
1answer
54 views

Send email to users with same field value in a select list

When a user registers on my site he/she chooses his/her State of Origin. Using Rules I would like to configure a rule which sends an email to all users from the same state when a user from that state ...
2
votes
1answer
34 views

Send reminder to referenced users day before event date in cck date field

I have a node type called event. An event has a "Event Date" date field, and a "Staff" user reference field. I need to send a reminder emails to all referenced users, 1 day before the event date to ...
1
vote
2answers
23 views

Change content of email verification email based on gender provided by user

In my website when a user submits the registration form and email verification is sent to them. Is there a way to change the content of the verification email that is sent after the user submits the ...
0
votes
1answer
29 views

Rules: action before a user gets deleted

I'm trying to fetch a user's profile before the user account gets deleted. I'm using the rule 'when user get's deleted' but once it gets deleted i cannot obviously access his profile. Is there a way ...
0
votes
0answers
10 views

Tokens for multivalue imagefield in rules mail

I have a multilingual Drupal site using entity translation. I have a Content Type for products with a multivalue imagefield (Field is Language neutral). So nothing Special so far. Now i want to Send ...
0
votes
1answer
40 views

Unable to return session value in views Field

I am storing a session value via Rules when the user is logged in session_start() $_SESSION['userkey'] = "12345"; Also testing it below there echo $_SESSION['userkey']; Although when I am ...
0
votes
0answers
12 views

Setting specific fivestar voting rules

I'm using fivestar to rate a content type but i have to make specific rules for voting: users can vote a value once (5 once 4 once...) for example if user choose to rate a node "5" he can't revote "5" ...
0
votes
0answers
14 views

How to automatically add group content to a newly created OG group using rules?

What i want to achieve is to add the same standard content to all new groups. Using the Rules UI i want: Event: After creating a new group Conditions : none Actions: Create + add a specific group ...
0
votes
0answers
9 views

Choose Ubercart checkout notification based on payment method

I'm developing a small e-commerce site which offers (at least) two payment methods: prepayment via bank transfer and PayPal (or COD, or... not really important). I'm running UC 7.x-3.8, Bank Transfer ...
0
votes
2answers
35 views

Delete user account after checkout completion

Im trying to create a rule that deletes an user account after checkout completion for New users, but it is not working. Can anyone please help me to figure out what is wrong? after checkout ...
0
votes
0answers
85 views

PHP Fatal error: Call to undefined function entity_crud_get_info() in #########\docroot\sites … in xxx/modules/entity/entity.rules.inc on line 96

I am getting the above error whenever I install the module. The above errors keep occuring on every page. How can I debug it or solve it? I am clueless and working for a solution Any pointers would ...
0
votes
0answers
14 views

Drupal Commerce and Commerce Stock module: how to send email alert when stock=0

i need to send email alert to shop admin when stock of some variations is equal to zero. I thought there was a rule to do this but I have not found it. what is the right way? ty
0
votes
1answer
23 views

Send email after term is selected in checkbox in a node form with rules

I have created a node form which has taxonomy vocabulary Application Status with three terms represented as check boxes Approve Masters Approve Honours Rejected What I am trying to achieve is ...
-1
votes
2answers
38 views

Enable menu item when user has added a node

In my website the user can create a node. I want a menu link to appear only after the authenticated user has created the node and not before that. Is it possible to enable a menu link only when the ...
0
votes
2answers
23 views

Action when a comment has been replied to

I have a unique case where we need to do something, namely a behavior where a user Comments on a node, and when a new comment is made in response to him, we need to "alert" the user in a variety of ...
1
vote
1answer
21 views

How to change the referenced entity field value?

I have a node that has a node reference to another content type. What I want is to update the referenced node field value on updating the node; Let me clarify the issue. For example I have a node of ...
0
votes
1answer
67 views

I can't set a data value using rule on a custom entity

I have created a custom entity "Project" with this fields: id, name. I have created a rule and added an action "create entity" and selected "Project". I have added another action "Set a data value" ...
2
votes
2answers
40 views

What does the rule event mean “Drupal is initializing”

What does "Drupal is initializing" mean as a rule event?
0
votes
1answer
12 views

sent mail when webform updated by rules

I have created one rule which has set condition as user has role and selected roles, whenever i have updated webform from other user role account, then also it will execute every time. please do ...
0
votes
0answers
13 views

Need publish created POLL using cron [on hold]

In our portal, we allow users to create poll. we received list of polls from users. we shortlist 5 top polls and need to published poll one by one to every month through crons. Please tell me how ...
0
votes
1answer
31 views

Rules : send email when user submit first node

I want to send congratulation email to user on submitting his/her first node. I want to implement this through rules, but i am confused that there is no such option except PHP evaluation which is bad ...
0
votes
1answer
23 views

Rules token one-time-login-url is showing up empty

I have a rule that, after submitting a webform, a user gets created and then sends two emails to that user. One saying their form data is being looked at by someone for review before they get a ...
0
votes
0answers
20 views

Specify the reason for the refusal of publication node

Please tell me whether it is possible to realize the functional moderation node using "rules" and "rules link". When you click the "Decline", moderation offers fill in the "Cause"? 3 day looking for ...
0
votes
0answers
14 views

revert to specific revision programmatically using rules

How would I set up a rule to be able to reset a node to their original state after for example flagging a node? I tried it but it seems that when you try to add an action to 'set a data value' rules ...
0
votes
0answers
17 views

Views Bulk Operations asks me for a uid

I have a views bulk operation that is supposed to create an entity registration, similar to described on this page under the rules heading. I select a given entity node, and I get this dialog: How ...
0
votes
0answers
37 views

Ubercart rule to modify user profile field

I have set up a product and a rule to change the value of a custom profile field. How do I link the ubercart product to the rule so that once a user buys the product, the rule kicks into action and ...
0
votes
0answers
11 views

(current-user:points] token showing points of the full category

The token [current-user:points] showing points of the full category. Example, the token value displays the points of all articles in the article section and I had added the token in every article and ...
0
votes
0answers
9 views

PDM: Remember dismissed messages until user logs out

I am using the Persistent Dismissible Messages module with Drupal 7, which works perfectly, however I could do with the adding a certain bit of functionality. When the user logs out, I need PDM to ...
0
votes
1answer
46 views

how to send an email when the content is unpublished

I'm using the rules module for sending emails. When the user adds a node, it can only be published when the admin approves it. For this I have used the content approval module. I have made a rule ...
0
votes
1answer
27 views

Perform action on logout,

I would like to add javascript on logout. I tried using hook_user_logout but the javascript doesn't get added. Even adding something as simple as drupal_set_message doesn't result in a message ...
0
votes
1answer
18 views

Drupal 7 Rule to save node based on fetched entity throwing EntityMalformedException if field empty

So I have a rule that attempts to fetch a node using fetch entity by property, and re-save it with a new author if a user field value matches a node field value upon user login. It works just fine ...
0
votes
0answers
9 views

When creating commerce order with rules create entity the order total price is not set

When creating a Commerce Order entity with Rules Create new entity action, the Order total price field is not being set even though i have set this field on the form. I have added a Save Entity (with ...