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

creating an alias on event after saving content with rules in drupal 7

I have created two rules In 1st rules event :-After saving a new user account condition:- User has role(s) Parameter: User: [account], Roles: teacher. Action:- Create a new entity Parameter: Entity type: Node, Content type: teacher`s profiles,…
ajaykumar
  • 35
  • 1
  • 9
1
vote
1 answer

SQL error in Php Drupal Rule code- Restrict vote number per day

I got an SQL error message when activating a rule with some Php validation. The goal of that rule is to check if a user has voted more than 2 times in the last 24 hours. Here is the code I used: // Configure your settings: $daily_limit =…
1
vote
1 answer

Drupal 7 Views and Rules Action Sets

I have created a view based on profile fields to display a custom search page for a particular role. Once the search results are displayed, the user can select one of them to send a notification. For this a VBO has been used with a force single…
Susila
  • 11
  • 2
1
vote
1 answer

How preventing editing a node when this node has a specific workflow status

I use Drupal 7 and I would like to prevent the edition of some nodes for specific user roles when the node has a specific workflow status. For instance, if the node has the workflow status "validated", the user having the role "contributor" is not…
Jiraya
  • 11
  • 1
1
vote
2 answers

Dynamically creating field using Drupal

Okay lets say I have a basic demographic content type (Client) that I am saving as a node. I need to make a key for an external database that we occasionally need to work with. I want Drupal to take the fragments of three fields being collected in…
moonman
  • 67
  • 8
1
vote
2 answers

Prevent content creation/edition with rules

Is it possible to avoid content creation/edition just based in rules? For example, a rule "before node save" that redirects to home page or other page. Does this prevent node saving or it just saves and then redirect? if it does prevent, is it…
K. Weber
  • 2,643
  • 5
  • 45
  • 77
1
vote
1 answer

Rules action: add a node

Is there a way of (when I add a user) to create a node with he as author? And is it possible to write own actions?
Max Allan
  • 640
  • 5
  • 18
1
vote
1 answer

User opting in/out of receiving email

Is there a way for the user to opt in/out of receiving an email upon the triggering of a rule? I have a rule to send an email to the author of a node any time a new node is created which references it. This is done in the following way; ON event…
Meggy
  • 1,491
  • 3
  • 28
  • 63
1
vote
0 answers

Rules sends email to node author when a node referencing it is created?

I am using the node reference module to create a link on my node allowing the user to add a page which references the node. This newly created node likewise has its own link allowing another page referencing this newly created node. And so on and…
Meggy
  • 1,491
  • 3
  • 28
  • 63
1
vote
1 answer

Fill in Form Field from Node-Field using Rules in Drupal 7

I am looking for a way to populate some fields in an (entity)form (for example name and email) once a client has filled in his tax-number (or another configurable field). The field to compare it to is in another node or entity. For example: A…
0
votes
1 answer

Drupal Rules/Taxonomy integration?

I'm wondering if there's a way to add/edit/delete Taxonomy terms in a Rule with Drupal 7? I haven't found any way to do that. Usecase: I'm trying to use Rules to maintain a (taxonomy) vocabulary of usernames of a certain role, so when a user's role…
BenjaminRH
  • 11,974
  • 7
  • 49
  • 76
0
votes
1 answer

Creating new event in a module

I'm trying to execute some code right before content is deleted. The Rules module has events for After updating existing content Before saving content After saving new content After deleting content However, none of these execute my code at the…
Beerdude26
  • 85
  • 10
0
votes
1 answer

How to check if a term exists with rules - 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 would like to know how I can check if a taxonomy term exists with Rules…
Timusan
  • 78
  • 1
  • 8
0
votes
3 answers

How to prefill a field of a node using rules in Drupal7?

Using rules it's easy to fill field values of a node after user pressed the save button. Just add a rule on before saving content event. But is it possible to have a rule to prefill a node field before edit form is shown to the user? So he has a…
Dmitry Vyal
  • 2,347
  • 2
  • 24
  • 24
0
votes
3 answers

Drupal hook to change date CCK field value

I need to send out a reminder email the DAY BEFORE a Calendar Event as well as the DAY AFTER. Unfortunately, I can't use Rules Scheduler, because the Tokens can't be manipulated with PHP. It doesn't work if I have [node:field_event_date-datetime]…
mikeDOTexe
  • 487
  • 5
  • 14
1 2 3
8 9