conditions

Events happening in the community are now at Drupal community events on www.drupal.org.

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

Posted by Arwym on May 26, 2012 at 4:27pm

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
1 comment Categories: , ,

Help with a list of conditions

Posted by johnatasJMO on August 7, 2011 at 3:35am

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
1 comment Categories: , ,

Terms and Conditions Agreement

Posted by konrad_u on September 28, 2010 at 2:02am

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

AltStyle によって変換されたページ (->オリジナル) /