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
1
vote
1 answer

How can I check whether one's current User Points are negative with the Rules module?

My question is pretty straightforward: how can I check whether a user's current amount of User Points is negative with the Rules module? I'd like to create an action that should be activated when the user is granted User Points. The event is set,…
Jeroen
  • 544
  • 3
  • 27
1
vote
0 answers

Letting users create their own products in Drupal Commerce

I have Drupal Commerce all set up but I need to allow users to add their own products (like on eBay). I've created an EntityForm type with all the relevant fields, and have set it up to create an entity (of type Commerce Product) on submission. The…
1
vote
1 answer

How to grant user User Points equal to certain field's value / calculated value?

I've a content type 'Content' with the field 'Value' (an integer) and a flag called 'Publish Content and grant points to user'. Every time a Content is flagged with this flag, I'd like to grant the Content's author some User Points, equal to the…
Jeroen
  • 544
  • 3
  • 27
1
vote
2 answers

How to grant user User Points after publishing content, while content's default is unpublished?

I'd like to grant users User Points when their added content of the content type 'Content', which is unpublished by default, is published. I tried this with the Rules module: - Event: After saving new content - Elements: * Content is of type:…
Jeroen
  • 544
  • 3
  • 27
1
vote
2 answers

drupal rules user account unchanged

I'm using Drupal 7 + Rules 2 and would like to create a rule that shows the user a message when their role has changed from one role to another. I was experimenting with using "account-unchanged" in a data comparison condition, but wasn't having…
areikiera
  • 35
  • 4
1
vote
1 answer

Drupal 7 Rules custom action assign return data to a replacement pattern

How can I create a custom Rule-Action which will successfully save a value as a replacement pattern for use in the other actions? I got some very good help here on retrieving Product-Display information from a Product-Order. As I said, the linked…
sisko
  • 9,604
  • 20
  • 67
  • 139
1
vote
1 answer

Flag and Rules module that an entered user automatically

I have a question, please tell me how can I set by "Flag" and "Rules" module that an entered user automatically, could adds the other users. Thanks!
Hadiseh
  • 11
  • 2
1
vote
3 answers

How to trigger rule A before or after executing rule B?

I have a view displaying content. I'm using VBO (Views Bulk Operations) for selecting a set of rows from the view and perform some bulk operation. That operation is executing a Rule component in which the actual operation to be performed is provided…
MadCoder
  • 641
  • 6
  • 16
1
vote
1 answer

drupal, rules, flag, date

I am using drupal 6. I have a node called [classroom]. I would like to have a [vacancy register] associated with each classroom. vacancy register is a cck type with: - uid - nid - join date I would like for each user to [register] for a…
Ed.
  • 11
  • 2
1
vote
1 answer

Processing tokens through Drupal Rules

I am using the Rules module to respond to specific events and send email alerts. This part of my project works fine. My problem is I need to include some dynamic data in the email message. For this I am using Tokens but the tokens do not get…
sisko
  • 9,604
  • 20
  • 67
  • 139
1
vote
3 answers

Drupal 7: Using Rules to add user to OG then assign OG role

The idea is to accomplish the following when a new user is added: Create a new group (OG) Save it Add user to saved group (OG) Assign group role (OG) I am using Rules with Organic Groups. All is fine apart from assigning the group role. I know you…
Waggatron
  • 9
  • 1
  • 5
1
vote
1 answer

Using Rule to update field in Drupal 7

I am using Ubercart Node Checkout. Here is my problem. I need to create a view of only nodes that have been checked out. From what I have found I need to add a rule that updates certain fields that have been defined in my content type. Here is the…
1
vote
1 answer

How to trigger a drupal rule from a javascript code

I don't know how to trigger drupal rule from JavaScript code. lowerLayer[image.feature_nid].on("dragend", function() { var position = kineticImage.getPosition(); var layerPosition = this.getPosition(); …
Haris Hajdarevic
  • 1,535
  • 2
  • 25
  • 39
1
vote
1 answer

Creating rule based on field collection field

What I want to do is trigger an action when one of the fields on my field collection is changed to a certain value. For example, my 'campaign' node has a field collection with a field called 'status' This status is a list containing 3 options;…
Rich Stevens
  • 599
  • 4
  • 17
1
vote
1 answer

Drupal: access to email address field of referenced User in an entity

I have two content types: business partner (B) service (S) The relationship is as follows: S --> B It means in service content type, I have a field named business_partner_ref with Entity Reference type. In business partner content type, I have a…
Farshid
  • 41
  • 3
1 2 3
8 9