conditions

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Arwym's picture

My condition parameter's 'optional' and 'default mode' options not having any effects?

Coming from a previous problem, I finally decided to just code my own condition, and the condition is working properly so far. Except for one thing, that is. There is one optional parameter I would like to add to my condition; basically, I'd like to let the user specify the content types he/she would like to restrict, if any. So, my condition function is as follow:

<?php
/**
* Implementation of hook_rules_condition_info().
*/
function nodecount_rules_condition_info() {
$conditions = array();
$conditions['nodecount_rules_condition'] = array(
'group' => t('Nodes'),

Read more
johnatasJMO's picture

Help with a list of conditions

My rule is that when a user is updated, the email domain must contain @domain1.com, @domain2.com, etc in order to become upgraded from Provider to GoldProvider. I've been trying to use the function AND without success. Can somebody tell me where and how do I need to add the additional domains?

thanks,


{ "rules_provider_upgrade_to_gold" : {
"LABEL" : "Provider upgrade to Gold Provider role after update",
"PLUGIN" : "reaction rule",
"REQUIRES" : [ "rules" ],
"ON" : [ "user_update" ],
"IF" : [

Read more
konrad_u's picture

Terms and Conditions Agreement

Hey guys and galls

I have following problem.

I have a list of products. Once someone clicks on a product (node type) there should be a message displayed with terms and conditions and a check box that someone agrees to those terms. Once the check box is checked and submitted it needs to redirect to this product page in order to view the node.

I tried redirecting to webform and than once it's submitted back to that product however can't seem to accomplish this last step. Maybe there is some other way using RULES.

Thanks in advance.

Read more
Subscribe with RSS Syndicate content