Skip to main content

Questions tagged [rules]

Use it for questions about the engine which allows site administrators to automate actions: the Rules module.

Filter by
Sorted by
Tagged with
2 votes
1 answer
586 views

Emails sent via a Rules action contain arbitrary line breaks

I have an email sent by Rules. Here is the text of the email in the Rules action: Welcome to x! As a professional user, you can now showcase your business on x by creating a Professional Profile ...
2 votes
1 answer
961 views

Rules: Set a data value for a taxonomy term reference on the user profile

I am trying to attach zodiac signs (stored as terms in a vocabulary) to user profiles. I have a rule with a "Set data field" action that, upon updating a user profile, sets account:field-user-zodiac (...
2 votes
2 answers
131 views

Notify user by email when matching content is uploaded

I'm setting up a real estate website that sends an email to a user notifying them when a property meeting their specifications is uploaded. Any ideas how I can do this in drupal 6/7 ?
0 votes
1 answer
1k views

Updating taxonomy vocabularies with Rules?

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 define an action that will let me do that. Usecase: I'm trying to use Rules to ...
1 vote
0 answers
466 views

How to use component variable in direct input mode

I'm trying to use a component variable in direct input mode, but as far as I know there's no token for variables. Is this a yet-to-implement feature of Rules, or is there any workarounds? For example ...
0 votes
2 answers
479 views

Different fields of same content type to different roles

I have a content type 'new resource'. I have the form displayed as a page. I would like to make it so that form contains an image field for the admin role, but have this field hidden for any ...
1 vote
3 answers
1k views

Hide or show fields based on whether the node is published

I'm looking to show and hide form fields based on the current progress of a node using contributed modules like Workflow, Maestro or rules. For example, I would like to show certain fields if a ...
2 votes
2 answers
3k views

Calculate the sum for 3 CCK fields with Rules in Drupal 7

I have 4 stock fields (Stock 1, Stock 2, Stock 3 and TOTAL STOCK) and I want to set up a rule to calculate ["+"] the sum of Stock 1, Stock 2 and Stock 3 fields, and automatically appear in TOTAL STOCK ...
2 votes
1 answer
2k views

Check to see if content exists; if not, create it

I have two node types that are related by a node reference. Essentially, content type A is a container, and content type B is an item. For illustration sake, I'll call content A Box and content B Item....
1 vote
1 answer
790 views

Rules Looping for Multiple User References

I have a Rule which checks to see if a "Reviewer" CCK User reference field has been changed. If it has been, it loads the referenced user and add the "Reviewer" role. This works perfectly however it ...
2 votes
2 answers
539 views

Real-time workflow scheduled transitions?

I have a simple workflow and am trying to figure out a way to get workflow scheduler to make node state changes in real time, at their scheduled time. I set the state change on a node to occur at 09:...
1 vote
3 answers
468 views

How to fetch X random entities of a given type using rules?

I have a custom content type "project" with several CCK fields. One of them is named "field_old_intranet_url". No i want to assign a (random) user to every node of type "project". The author field or ...
0 votes
1 answer
1k views

Add rule for a webform checkbox to autosend email after specified time

Im running D7 with webform. I have a multstep form, on the last step the user is asked to participate in a future survey. If they enter their email and check the box to agree, they should receive an ...
7 votes
2 answers
10k views

How should I use token_replace()?

Could somebody give me an example of how to use token_replace()? I'm trying to write a custom PHP rule for the Rules module that will rewrite few fields of a new saved content, using the values from ...
1 vote
1 answer
176 views

Drush site install break when a custom commerce feature is enabled, why?

The D7 site i'm working has a feature that includes two custom product types, amongst other things. A custom feature gets auto-detected and added as a dependency because it contains a rule on one of ...
2 votes
2 answers
3k views

Ubercart email notification to store owner when order submitted

I am new to Ubercart (we are installing and configuring on a Drupal 6 site) and have all of the store built out. I am attempting to set up a notification email to the store owner when an order is ...
1 vote
0 answers
223 views

Is it possible to set the OG audience of a node to the audience of its referenced node using Rules?

I'm working on a D7 helpdesk distro with four content types: Organization, Case, Internal Note, External Note. Notes are linked to a Case via node reference. To allow users to see only the Cases that ...
1 vote
1 answer
478 views

How to output node fields of referenced nodes as plain-text key/value pairs?

I've got a super content-type that contains at least 4 node references. The first three references aren't always the same node-type but they contain just one referece. The third reference can ...
0 votes
1 answer
2k views

How to set a rule that sets a term reference field value and text area value in a commerce order entity

This relates to a post I made here How do I copy a "purchase limit" field from a product to a product line item Situation: We are building a commerce website using Drupal 7 and Drupal ...
1 vote
0 answers
219 views

Rules "Add item to list" does not work with users

I'm trying to add a user to a field with Rules. The rule has the following workflow: On Node Being Flagged Node is of Type Add Item To List Item is the flagging user, and the list is a user ...
3 votes
1 answer
733 views

Looping Rules without Lists

I have an online store using commerce and rules, with products that can be bought in different quantities. Commerce stores the line-items in an order as a list, but it stores the quantity-per-line-...
5 votes
1 answer
3k views

Pass an argument to a Rules Action using VBO

If I create a Rules Action to set the value of a CCK field, and point to that action from VBO, is there a way to add user inputs to the VBO form on the views page to pass parameters to the Rules ...
2 votes
2 answers
3k views

execute a php code after a user login

I see that triggers page is changed from the version 6, It's pretty wierd.. I can't find When user logs in execute a php code thing... What I have to do is exactly that.. control some user roles ...
1 vote
1 answer
174 views

Calculate the greater of two values in Rules?

I'm trying to set up a rule which sets a CCK field to the greater of two other CCK fields, but calculate a value only has +-*. How do I figure out the greater of two values?
2 votes
1 answer
454 views

How can I schedule change of the default front page?

I have a node being displayed on the front page, set at admin/config/system/site-information > Frontpage. I need to change it to another node on specific date. It would be ideal if I could do that ...
0 votes
2 answers
765 views

Do 'edit node' redirect via custom PHP code?

I have a rule for returning users to finish creating a cck form. I need to 'Do' custom PHP code to redirect the user to editing/finishing their cck form (node limiter limits user to only one PPE ...
0 votes
1 answer
907 views

Proper with "Executing Custom PHP Code" Action

I am trying to add an action that "Executes Custom PHP Code". I click Add a new action to the rule I have created and I choose "Execute Custom PHP Code" from the drop down the ...
2 votes
1 answer
2k views

Rules: Steps to trigger a rule when a field is updated

I am using the rules module to send an email when a particular CCK field field_test is changed. These are the steps I performed: Event: After updating existing content Condition: Field has changed ...
2 votes
1 answer
387 views

How to use arguments, defined in a custom event, for an action

I've just defined this event with the two arguments: number and message. I want to use them to verify the message and send a response back to the number. I have an action for that but I don't know how ...
0 votes
1 answer
194 views

Create rule to e-mail only someone who has combined roles

This is for a Drupal 6 install. In rules there is an IF statement available of "If user has roles" and this can be set to be either an "and" statement or an "or" statement. Within DO is an option ...
0 votes
1 answer
2k views

Convert a node from one content type to another, using a rule set

I want to convert a node from one content type ("Project") to another one ("Project follow up"), basing on the comparison between the current date (using PHP) and the value of a field date ("Project ...
4 votes
2 answers
930 views

How can I redirect the users after confirmation basing on the roles they have?

I have two type of users, and I have created two types of registration forms for each role. I want to redirect the users to different pages, once they get the email confirmation according to their ...
1 vote
0 answers
708 views

Get OG administrator users from Rules

I want to send an e-mail to all group administrators when a user joins a group. Rules and OG come with this functionality out of the box, but unfortunately the default rule is set to only e-mail the ...
0 votes
1 answer
596 views

Newbie - I want to trigger an action when a user creates / updates a profile

I would like to trigger an action when a user creates or updates a profile. What classes should I look for? I search for the documentation but I didn't understand it much. Can you point me to the ...
1 vote
1 answer
381 views

How to discard changes in Rules module

Depending on a condition I want a node's changed content not to be overwritten on the old content. That is old content should be retained and new one discarded so that node does not change. Which ...
1 vote
2 answers
478 views

How to publish referenced nodes at the same time node is published?

I have a product content type and a review content type. A user can create a product node and then several users can review it. There is a node reference field in the review content type that links ...
2 votes
1 answer
338 views

Force the module "legal" to show a "form_set_error" on path /user/register

I'm using the "legal" module version 6.x-8.5. This is a great module, but i think there's a form_set_error() message needed, to show the user which's trying to register, why registering cannot be ...
2 votes
1 answer
328 views

Trigger whenever a user uploads an image

I would like to enable certain actions to occur whenever a user uploads an image, namely movement to s3 and adding an entry in the db for site and metadata purposes. What would be my first steps in ...
2 votes
1 answer
473 views

Content profile + rules. Problem with action, when user is created a profile then logged in

guys. Got a problem with content_profile and rules modules. By default rules has a Redirect to profile creation page, if users have no profile. It works fine. When a user is registering on the ...
2 votes
2 answers
718 views

Triggers on node creation of certain content-type

It is a question that always gets answered by "use rules module." Unfortunately, this site depends heavily on a few actions and triggers already, and a migration is not in order. Are there trigger-...
2 votes
2 answers
1k views

performance: rule set or triggered rules?

I need to create some rules like "when create photo, when create video, when create story" but all use the same Event "after content is saved"... so, what's the best way? a rule that trigger a rule ...
1 vote
2 answers
2k views

Redirect node type to a view

I have created a view that lists all the nodes of a certain type. If you go to view the node on it's own page I would like it to forward to my view. I tried doing this using rules but as I display the ...
1 vote
1 answer
132 views

Can Rules be used to disable the logo variable on some pages?

I have a change in Drupal 6 that I would like to make quickly without doing another SVN roll (until I get a more permanent solution in place) and I would like to create a triggered rule that will null ...
0 votes
2 answers
394 views

Can Rules create a node reference that is empty except for a title?

Is it possible to automatically create a reference node or entity with Rules? The idea is to have a node with information and an image Gallery reference. If the image gallery is clicked on the node ...
3 votes
1 answer
1k views

Adding a CCK field with Rules

I'm trying to use Rules to populate a CCK field - a user reference when they flag a node. It basically works, but if there's already a user reference it overwrites it instead of adding another. That'...
1 vote
1 answer
1k views

Sending mail to an adress specified in a node creation form with an CCK email field with Rules

I'm using a node creation form open to anonymous users to register volunteers for an event, and I want to redirect them to a thank you page, and send them an email when they register. I'm using Rules ...

1
42 43 44 45
46