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
2
votes
2 answers

Run rule only if workflow state changed to XYZ

In Drupal I'd like to set up a rule that only runs if a workflow state is changed to a specific state. For example, if an Application is marked as 'submitted' and was previous marked as 'draft', I'd like to execute a specific block of PHP. Is this…
Ian McIntyre Silber
  • 5,553
  • 13
  • 53
  • 76
2
votes
3 answers

Rules module not picking up the (external) "User Login" event?

In my installation the users login with Shibboleth [1], but the rule [2] I've set up to be executed on "User has logged in" event, isn't executed. On the other hand, when I login as administrator through the normal Drupal way, the rule is…
Kay Pale
  • 6,449
  • 7
  • 28
  • 28
2
votes
2 answers

How to create new entity (node type) using drupal rule

I have content type award with few fields (user, position, lesson). I have create a rule to create new node in rule actions. When i select node type in rule it's show only two fieds : title and author. How i get all other fields in rules action or…
Vishal Kamal
  • 1,104
  • 2
  • 10
  • 35
2
votes
1 answer

Configure access for using this component with a permission not available in drupal settings?

I have created a new rules component action set for a view that shows user of a certain role. The action set displays a system message and sends an email to the admin when executed. The view shows the bulk operations for user 1 (admin) and executes…
2
votes
2 answers

How to use Drupal rules to adapt content access permissions for nodes that are older than 1 week?

I have a special content type named "example". I want to show new nodes of this type to anonymous users of my site. What I need: after 1 week the node was created, content access permissions (Content Access module is installed) are changed that only…
Somerussian
  • 381
  • 4
  • 17
2
votes
1 answer

Add user role based on Profile2 Field Using Rules

What I am trying to achieve is: 1) I have a Profile2 field in the user registration form called: "Firm Type" 2) I need to assign the new user a Role based on the selection in this field. I have tried the following: Event: After saving a new…
2
votes
0 answers

Drupal Shipping Rules with Product Option Sets

I have an pricing attribute option set up on one of the Drupal products. I am trying to create shipping rules that address: 1) Which of the options for the product the user selected 2) Where the user's address is To calculate individual shipping…
2
votes
0 answers

Calculate price using percentage from product field

I'm using drupal commerce module and drive with pricing rule problem. User and product have percentage fields, which are discount values separately. Final discount gathered from sum of this fields. How can I calculate line item price with discount…
Tigran Vardanyan
  • 305
  • 1
  • 3
  • 10
2
votes
1 answer

Send email to revision editor instead of node author

I am currently using the Workbench Moderation module to allow pieces of content to be moderated and go through an approval process before being published. This all works great. Part of my process is to send an email to a user when their edited…
Erich H.
  • 467
  • 1
  • 9
  • 28
2
votes
2 answers

Drupal 7 Rules delay sending or group emails to users

I have a drupal site which will include a user forum. As it is a new site, I have a number of volunteers who are prepared to 'seed' the forum and respond to user posts at least until the system becomes self-sustaining. Using Rules, I have managed…
Robert Seddon-Smith
  • 987
  • 1
  • 9
  • 13
2
votes
1 answer

Drupal: Writing taxonomy reference field using rules and custom php code

I have a taxonomy vocabulary kategorie like this: Kat01 Child01 Child02 Kat02 Child01 Child02 The vocabulary has a custom field with IDs like this: 957214d2-ce39-423d-aeb1-32f2e8b972f6, so every term and parent term has an ID (which is NOT…
krabbe
  • 63
  • 1
  • 9
1
vote
2 answers

Redirect to different pages on user registration and user login in drupal

I am trying to set up two rules in Drupal 6 to do the following - rule 1: ON event User account has been created Redirect to page A rule 2: On event User has logged in Redirect to page B However, no matter what I do it never redirects…
user393144
  • 1,575
  • 3
  • 14
  • 21
1
vote
0 answers

Comparison of user account created date + 6 months to current date: how?

Im trying to create comparison of user account created date + 6 months and see if its greater than site current date and if it is to block user. (6 month expiration for user accounts) How can I write rules comparison with numeric compare greater…
1
vote
1 answer

Drupal 6 Triggered Rules and Rulesets

I'm trying to create a rule/ruleset that: Is triggered when a user registered with the site Then (depending on a CCK field value included in the registration) add that user to a role Then redirect the user to a profile page. I've tried no end of…
Lee
  • 11
  • 2
1
vote
1 answer

Drupal Rules - Save taxonomy term's weight as integer to node's CCK field when saved?

Is it possible with Rules to set the numeric weight value of a taxonomy term as a CCK field when a node is saved? I have 2 taxonomy vocabularies, and all nodes of a certain content type will have 1 term from each vocabulary. When not on the term's…
Evanss
  • 23,390
  • 94
  • 282
  • 505
1
2
3
8 9