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

learn more… | top users | synonyms

0
votes
1answer
15 views

Rule set username after changed user email

I need an email registration system only in my drupal site. I installed the module email_registration and I created a module like this ...
0
votes
0answers
9 views

Is there a rule condition for 'is user:' or 'is root user'

I am creating a rule that will help to manage permissions, but I only want it to run if the root admin is logged in. Is there a rule or a rule helper module that allows rule conditions to be based on ...
0
votes
1answer
21 views

Is there a way to trigger an image crop dynamically?

I have a Flag setup for an image content type which allows users to Flag an image that they want to be their avatar/user picture. I also have a View which displays this flagged image. When a user ...
-3
votes
0answers
17 views

Create a product in drupal and it will create automatically in open bravo ERP [on hold]

I want to create a product in drupal and at the same time it will be created in Openbravo ERP automatically...what should I do to make it possible? should I use rules? I just want to create it once, ...
1
vote
2answers
13 views

Unpublished content type using rules module based on user role

I have a website were there are two type of users, Administrator and Clients. I would like to add a rule that should apply if the user is Clients. The rule should unpublished the new content and ...
0
votes
0answers
13 views

Negate redirect rule based on Ubercart cart contents

I am having trouble getting a rule to work the way I want it to. I actually have two rules... one is fired when a "new" product with a specific taxonomy (catalog) is added to the cart via a Views Bulk ...
1
vote
1answer
27 views

How to find if a rule is successfully executed or not

I am using Drupal7. I have created a custom event for a rule using hook_rules_event_info(). I have added an action for the rule(flag a node).When I invoke the event in code using rules_invoke_event() ...
1
vote
3answers
22 views

Drupal commerce user based percentage discount

I need to have different order total discount rates in % for each customers. The default discount is 10% for all users and it need to be override for certain users too. i.e administrator can set the ...
0
votes
0answers
12 views

How to Button a Rules Link URL

I'm using Rules Link, via a Views block set in a user Panel page. At the moment it sits ready for a users click response to trigger an event and works fine in its approach. Prior to major ...
0
votes
0answers
16 views

Unable to set data value of a enity through Rule

I am trying to create sub order from an order place on my portal . so this I have created a rules which triggers at checkout.I have created this rules with help of a component as per below. Main ...
0
votes
0answers
9 views

How do I pass a list of arguments to a VBO view?

I'm writing a rule that will ultimately email users when relevant content has been published, but having trouble fetching my list of users. Basically: I have a content type of RFP (request for ...
0
votes
1answer
12 views

What is the best way to use views bulk operations to start a rules loop?

In other examples, Views Bulk Operations has been used to trigger a rule on a group of nodes/entities. In general, an action is performed on the items which causes the rule to trigger for each. I ...
0
votes
0answers
11 views

Drupal Commerce, Set rule to order per quantity of 6,12,18 etc but with the option to be 6,12,18 different products

I haven recently started using Drupal Commerce and im loving it already, thought im trying to achieve something that i dont really know how to approach something like that. I have searched all over ...
1
vote
1answer
15 views

When using Rules, does a page refresh happen immediately if the event is set to 'Drupal is initializing'

I have several views pages set up on my site that filter the content that is shown to normal visitors. In general, these views will show users content that they have created. However, when an admin ...
0
votes
2answers
34 views

How do I create a page (with a url) that displays only views blocks

I have been using views to create all of my pages. I am wondering if there is a way to set up a page (with url) that is initially blank. I want to use context to place view blocks on this page based ...
0
votes
1answer
10 views

Set the value of a Fixed amount Commerce Coupon using rules

It is practically impossible for me to set the fixed amount of a coupon created with rules. The coupon is generated aliright with a coupon code but the fixed amount value is always empty, i can only ...
0
votes
1answer
29 views

How to disable shipping for ONLY virtual products and not if combined with physical

In Drupal Commerce, I'm trying to come up with a rule the bypasses shipping if virtual product types are put into the cart, but ONLY if all products are virtual; if physical products are put in, then ...
0
votes
0answers
13 views

Using rules for members of Organic Groups with a certain role

I am trying to set update a rule which will notify all group admins when a new user requests to join that group. The current rule notifies only the group author when a new user requests to join. I am ...
-1
votes
2answers
51 views

Undefined variable: nid

I put this code in Rules Action PHP Evaluation. What I want is getting the field_price's value, changing it for negative and returning it for Rule. With this I will be able to charge points because in ...
0
votes
0answers
8 views

Why doesn't the 'Rules evaluation log' open anymore?

I have a rule that's activated when a new comment is added. The 'Rules evaluation log' is displayed (because some error occured while executing the rule), but for some reason, it doesn't open anymore ...
0
votes
0answers
21 views

Can you hide date field when its date matches with the sites date? [duplicate]

I have a date field in my site and I want it to hide/be invisible when the date I have set is now or matches the sites date. I hope there is a way to do this using Rules.
0
votes
1answer
26 views

Charging UserPoints for flagging a node with Rules in PHP

I am trying to charge points for flagging a node with Rules in PHP, an I am using the following code. //Get variables and load user. $uid = [userpoints-transaction:user:uid]; $account = ...
0
votes
0answers
16 views

Status, rules and Message Module

I'm looking for something combination of Status, rules and Message Modules. i want to post a status with "status module" and it will be added in message types via rules module. I don't know how to ...
0
votes
1answer
24 views

New role assigned on user account update

I'm thinking about writing a condition ("has new role(s)") using the Rules module to send an email to user to whom a new role is assigned. I need to know how to actually code this... If (user has a ...
0
votes
2answers
34 views

Can I hide date field if older than a certian time using Rules?

I want to know if I can hide the values of a date field if the values are older than a certain time. The website is built with Drupal 7, and Display Suite.
-1
votes
0answers
6 views

how to get node id using webform or webform rules?

In my node pages we add block to report error related to page. when user report about page they can unpublished this page but my problem is that when i am use rules of web form event "when form ...
0
votes
0answers
15 views

Send Gift Coupon code to referenced users in drupal commerce using rules

I have a custom gift coupon product and users need to input the recipient name and email before purchasing it. So far so good. Using rules, i have been able to send emails to the recipient when gift ...
0
votes
0answers
24 views

Delete account or send email based on variable content

At my earlier question I managed to delete an account when a telephonenumber matched a criteria : Delete useraccount with rules based on value filled during creation of account Now I wondered if ...
0
votes
1answer
35 views

How to send emails to the subscriber?

I have two content types movie types(say comedy, horror, action are node titles) and movies. where I am using movie types node titles as a node reference in the movies content type. here user can ...
0
votes
2answers
15 views

Rules - How can I put a link into an email sent by a rule

I would like to use rules to send an email to my admin staff when a new piece of content is created. It would be great if the email contained a link to the content to make it easier to find. Is ...
0
votes
0answers
17 views

Help me with this og_group()

I have some problem in my rules trying to use og_group() in "Execute custom php code." I have created two content types; one is [Student Application], which is the application form that will be ...
0
votes
0answers
12 views

Send userpoints to a user referenced in a commerce order

I want to give userpoints to a user referenced in a particular order with the amount of that order while deducting same userpoints from the user who purchased the order. Basically i want to user ...
1
vote
1answer
26 views

Deduct 10% transaction fee when user donates userpoints to another user using rules - Drupal 7

I want to use rules to deduct 10% of the transaction amount from a donor each time he donates userpoints to another user using the userpoints_donate contrib module. Currently there are no rules events ...
0
votes
1answer
25 views

Do tokens work with Rules “Set a data value”?

I have a simple Rule created in which the action is that a particular entity is created (a node) and then another action is called to "Set a data value" of one of this node's field (a standard text ...
0
votes
0answers
16 views

How to use workflow 2 with rules correctly?

I am using Workflow 7.x-2.2, Rules 7.x-2.6. I try to create a workflow named reviews with this following states: accept do not accept And add the reviews field the Article. Then I try to create ...
0
votes
2answers
49 views

How can I check if the author of the current node is the current logged in user?

I am trying to execute a Rule based on the condition of whether the currently logged in user, is currently viewing their node (a node they are the author of), or viewing someone else's node. The Rule ...
0
votes
0answers
10 views

Rules set dynamic date values and pass to downstream action

I need to set start/end datetime fields for a Rules-triggered call to a SOAP service (using wsclient module). The start time needs to be based on data from the previous call to the service. (Some ...
0
votes
0answers
13 views

Make replacement pattern a click-able Link

Using Rules I have created a rule shows a nodes url in a drupal message to the creator of the node. Is there a way to make replacement pattern [node-url] a click-able link,so that the node creator can ...
0
votes
0answers
12 views

Calculate a date for “Scheduled evaluation date”

I'm trying to create a rule to send a email on a customer birthday. For that, I created a contact type with a date field which has day/month/birth_year. (I want to have the birth year for future ...
0
votes
1answer
35 views

Creating a loop condition in Rules for Commerce Line items

Certain products on the site can't be shipped using a certain shipping service as they are classified as dangerous goods. So I need to be able to loop through all the items in the cart, check to see ...
0
votes
1answer
28 views

Once a month reset a field on all users accounts

Once a month I would like to reset a field on all users accounts to 0. At the moment I have a horrible way of doing it. Each time a user logs in the data is scheduled to be changed only for that ...
1
vote
0answers
30 views

What token should I use while sending email when I am programmatically adding the content?

When I fill the form. I get this email A new Event "Event name" has been created. To approve this Event please go to http://websitename.com/content/content-name and click ‘publish’. I have ...
0
votes
0answers
35 views

Rules: Event user has logged in won't trigger rule

As simple as that. I can set any event to trigger a rule (for example, user has logged out), but if I change it to User has logged in, the rule is never triggered, even if conditions and actions ...
1
vote
1answer
25 views

How to grab the user's Fivestar voting value with Rules?

On my website, comments on nodes have a Fivestar field 'Stars'. I'd like to save the user's voting value as a variable in a rule that's activated when a new comment has been saved. Unfortunately, I ...
0
votes
0answers
13 views

Rules: “Fetch entity by property” for users that share terms with new node

I have a content type of RFP that has a term reference field named "RFP Categories". The users also have this same term reference. When I publish a node, I want to email all users who selected a ...
0
votes
1answer
19 views

Module Rules-> PHP Code, trying to use a Form Handler from Pardot, but Pardot is not receiving the info

I am trying to use the Rules Module to send a form-handler to Pardot using a php Script when a User logs in. I tested my variables to make sure they were valid by seeing them in a message and they ...
0
votes
3answers
27 views

Delete useraccount with rules based on value filled during creation of account

Does someone have a solution/description for my wish to delete (fake) user accounts that almost always fill in the (phone-number) string 12345 or 123456. I already have a rule that sends me an ...
0
votes
0answers
8 views

Rules to grab field content from referancee entity

I been trying to figure this out for two days now with no luck and any searches online gave no results based around the same issue so this is really my last hope. I have a content type of VENUE and ...
0
votes
1answer
32 views

How to write a custom action that provides a new integer variable?

My articles have a field collection field and one of the fields is an integer. Users can add as many fields as they want. I'd like to reward them some userpoints, equal to the total value in their ...
0
votes
1answer
27 views

enable Rule module with fatal error

I use drupal 7.26 and try to install Rules(7.x-2.6) with drush (drush en rules -y) I can not visit my drupal site Now. I install Xdebug. this follow is error detail: Fatal error: Class name must be ...