Questions tagged [drupal-rules]

The Rules module is a Drupal module that allows site administrators to define actions that are conditionally executed, either programmatically or in response to predetermined events. Don't confuse this tag with drupal-roles.

The Rules module allows site administrators to define actions to be conditionally executed, either programmatically or in response to predetermined events.

Resources

125 questions
6
votes
2 answers

How we use services with rules

I want to use drupal rules with services module. I have with services_rule module. It's not working for me. I did't find event for service. Please help me out. Thanks
Vishal Kamal
  • 1,104
  • 2
  • 10
  • 35
6
votes
3 answers

How to create a Drupal rule to check (on cron) a date field and if passed set field "status" to "ended"?

I'm trying to create a custom rule (using the Rules module) so that every time the cron runs, this rule checks a date field in a custom content type I created. If that date has passed then I want to set a list widget from active to ended. This is…
Cybercampbell
  • 2,486
  • 11
  • 48
  • 75
5
votes
2 answers

Rule-based node creation: commerce product + product display node set

I'm trying to bind a Commerce product type to my own custom type node (serving as a display node). The goal is to enter new data in as few places as possible. I'm therefore exploring a rule-based creation of one type upon creation of the other.…
user776686
  • 7,933
  • 14
  • 71
  • 124
4
votes
4 answers

Do not allow a user to delete a node but allow to delete through Views Bulk Operations

I have the following scenario: Editor Role should not be allowed to delete nodes. Therefore the corresponding permission is de-selected in the permissions page. However Editor should be able to to delete nodes from Views Bulk operations.…
Sid Kshatriya
  • 4,965
  • 3
  • 25
  • 29
3
votes
2 answers

How to make a new node with rules in Drupal 7

I had a previous question combining two questions on this subject...but I think I explained a little bit vague...too much story...so I will ask just one question at a time :) I'm trying to create a node with a rule. Rules needs to create a new…
Timusan
  • 78
  • 1
  • 8
3
votes
1 answer

How to get Drupal Rules settings?

How to programmatically retrieve configuration of the specific rule? I tried $settings = rules_config_load('RULE_NAME'); It returns very basic info (name, ID etc) and empty "settings" array. Cant also get it directly from DB . It is stored in…
ymakux
  • 3,415
  • 1
  • 34
  • 43
3
votes
0 answers

One of Drupal Commerce shipping services abruptly disappears/rule gets deleted

I am not sure whether this a bug or not. I have one shipping method that includes two shipping services. One of the shipping services is available only if the ordered items include Arabic language books; in such a case the user is represented with…
perpetual_dream
  • 1,046
  • 5
  • 18
  • 51
3
votes
1 answer

Using Drupal rules to email users with a role but only once

We have been trying for a while to solve a Drupal Rules problem. The situation is; On every cron run we would like to check for Users who have a certain Role. We will then send an email to those Users. But we only want this email to go once. We are…
3
votes
2 answers

Drupal 7 Rules - on cron, check date field and if past set field [Status] from “active” to “ended”

OK... let me start by saying I know there is a similar post here (How to create a Drupal rule to check (on cron) a date field and if passed set field "status" to "ended"?) but the answer on that post does not work. Step 4 (In the component add the…
Cybercampbell
  • 2,486
  • 11
  • 48
  • 75
3
votes
0 answers

Redirect user using rules after competing registration in drupal 7

A little bit of background of what I've been doing before I go straight to my question. I used Toboggan Drupal Module and let the user automatically log in after complete registration At the registration page, there's a Price Plan that the user has…
Wesley Brian Lachenal
  • 4,381
  • 9
  • 48
  • 81
3
votes
1 answer

Drupal Commerce Kickstart v2 Approve Order before payment

I am building a proof of concept ecommerce solution using commerce kickstart v2 I wish to implement a system where a user can submit an order but an admin must approve orders before the customer can pay - I have a feeling I can do this with rules &…
Alan
  • 93
  • 6
3
votes
1 answer

Drupal 7 Rules: how to send within an e-mail the url of an uploaded attachment (after node change)?

I have a Drupal 7 site with a custom node type with a custom attachment field. After a (kind of this custom) node has been published, I got an e-mail with the help of Rules module. I would like to set up an another rule, which sends me an another…
Pene
  • 93
  • 1
  • 6
3
votes
1 answer

Using token as data selector

I created the following token; however, when I try to use site:coupons as a data selector in a loop action It does not appear in data selection browser. Note that it does appear as replacement pattern when i use for example "Show a message on the…
Sina Salek
  • 323
  • 2
  • 14
2
votes
1 answer

Drupal rules php action

I am experimenting with the Rules module for the first time and I am attempting to redirect my users with some simple php code as below: drupal_set_message('testing'); drupal_goto('node/3'); The first line of code executes but the second, which…
sisko
  • 9,604
  • 20
  • 67
  • 139
2
votes
0 answers

How to send html mail in drupal 8 rules

I want to use rules module to send the HTML mail, directly form the UI, But in drupal 8 send mail action only shows Send Message body as text field. Can I use it to send the HTML mail directly like can I use default CKeditor or dynamic mail…
Ranjan
  • 180
  • 2
  • 8
1
2 3
8 9