The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
22 views

Complex condition drupal query

I'm trying to add following mysql condition: WHERE DAYOFYEAR(curdate()) <= DAYOFYEAR(DATE_ADD(FROM_UNIXTIME(field_birthday_value, '%y-%m-%d'), INTERVAL (YEAR(NOW()) - ...
0
votes
0answers
19 views

Legal module: not working in Dutch

According to the module page, the module Legal should allow multiple languages. However, when I try to save my Terms & Conditions in Dutch, it doesn't work. As you can see on the screenshots, I've ...
0
votes
1answer
58 views

Rules Custom Condition for registration capacity

I am trying to learn Rules and adding a custom condition. I need help to figure out what I am doing wrong. My Condiiton set up: function rules_example_capacity_condition_info() { $conditions = ...
0
votes
1answer
28 views

How to run an action on condition that returns true in the rules?

How to run an action (hook_rules_action_info ()) for each condition (hook_rules_conditions_info) defined in the rules.
1
vote
1answer
20 views

It is possible to have an action for the condition rules?

I have several conditions that are called in rules_condition_info () and wanted to have an action for each, for whenever a function returns true, it is called an action. I know it's probably possible, ...
0
votes
1answer
15 views

conditional fields in node creation

Well Im trying to use some conditional fields while creating some type of nodes. for example I have a content type called "organization" this content type has name, logo, and some other stuff also ...
0
votes
1answer
9 views

How to get the values ​​of an array in the options list (hook_rules_condition_info ()) instead of array index?

'example_condition_user' => array( 'label' => t('User Condition'), 'arguments' => array( ), 'parameter' => array( 'username' => array( 'type' => 'text', ...
0
votes
0answers
18 views

How to pass a value from one function to the options list, instead of always display the array index?

'options list' => 'list_all_users' / / this is done within the hook_rules_condition_info () When I do this, the options list receives the index of the array, the function list_all_users going to my ...
0
votes
1answer
25 views

How to compare with a rules condition vote:uid to 10 instances?

Principle: limit user's votes to 10. Modules used: Voting API, Rate (or maybe Plus1) Context: Users can vote on projects with 10 possible votes to distribut on all projects, by 1 to 10 votes on each ...
0
votes
2answers
60 views

Targeting non admin pages (front end) from a module

From my custom module I'd like to target essentially all front end pages on my site whether it be a node, front page, a views page or taxonomy page. I started out thinking it would be better to use ...
0
votes
0answers
18 views

add segmentation conditions to simplenews?

Hello Im trying to find how can I add segmentation to my newsletter campaigns, I use simplenews. This is my use case I ask the following information to anonimous that want to suscribe to my site: ...
0
votes
0answers
33 views

Custom rules condition gives error “Unknown data property label”

I am creating a custom condition for use with the Rules module; but I am not able to access the entity ID and entity type that would seem to be available to the EntityDrupalWrapper object. Perhaps ...
0
votes
3answers
74 views

How to add and condition in Query [closed]

I have to fetch nodes where it doesn't have both roles(6,7) in it,at the same time exactly. I don't want to show role 7 nodes, but it some times have role 6 attached to it also ,at that time i want ...
0
votes
0answers
44 views

Hiding a field based page using webform conditionals

I have created a markup field on my webfom and I wish to only show this field base on the page or url that it's on. Basically I do not want it to show on any page that is within the url string: ...
0
votes
0answers
70 views

Using Rules to Sum Value Field of a Node

Already know how to create a view with sums. That won't help because I can't call that value into a variable. This question is how to use views rules, or views VBO combined with rules to create a ...
1
vote
3answers
280 views

How to apply an image style based on a condition (a date for ex.)?

I'm looking for a way to apply a grayscale image style to a content type image field when certain conditions are met. A date is reached (date field) for example Can the rules modules do this ? ...
0
votes
0answers
48 views

Check Current Environment of Drupal Instance

Is there a built-in way to check what environment Drupal is running in? I'm coming from an environment where you would do something like if Rails.env.production? render partial: ...
0
votes
0answers
45 views

Taxonomy term with conditional php comparison fails boolean match (D7)

I'm trying to create a link in a block based on taxonomy of the node. I have a taxonomy Vocabulary called "Concerts" and a node tagged with the term of "concert1" I am able to use tokens within a ...
0
votes
1answer
829 views

How do I set up a shipping condition that accesses the value of a specific field in product?

I have a term reference field in product called "Weight" with values "Light", "Medium" & "heavy". I am using flat rate shipping service and trying to check the value of "Weight" field in ...
1
vote
3answers
733 views

Commerce - How do you setup conditional shipping options that relate to a specific taxonomy term?

My store sells heavy and lightweight widget items. I currently have 1 product type and have 1 term reference field that designates it as either light weight or heavy weight Now in my flat rate ...
2
votes
0answers
56 views

Views filter value based on a selected filter?

I'm trying build a garbage collection website where the user puts in their city, street, and street number and it tells them the day the garbage is picked up. Right now, I've imported about 14000+ ...
0
votes
3answers
1k views

How to write webform settings and conditions programmatically

I'm trying to create a webform on my node programmatically so that I can set it up to be used as for a specific scenario. What I wanted to do is have all of the components my client want to appear ...
0
votes
1answer
254 views

condition inside template.php (if logged_in/logged_out and else)

Is it possible to perform condition inside template.php (if logged_in, do these...else do that/ do nothing)? I am a front-end developer, and as a front-end developer, i like my code clean. So i'm ...
1
vote
2answers
205 views

How to create complex conditional clauses / queries?

I've been reading the documentatoin on conditional clauses and also studied the api description for db_and() and db_or() but I fail to create a $query with 3 ->conditions: select all between 0 ...
0
votes
1answer
151 views

How do you add a conditional to check if the Node object exists?

I have the following code, but how do I add a conditional to check if the menu_get_object() is grabbing a node object or not? Im mainly using this in my contextual filter in views and its throwing an ...
0
votes
1answer
86 views

Rules 2.x check if node is displayed as page?

In Drupal 6 to check if node is displayed as page we can use: Select the condition to add - > Check a truth value Truth value - > <?php echo $page ?> How to do this in Rules 2.x for Drupal 7? ...
0
votes
0answers
205 views

How to hide fields by default with webform-7.x-4.0-alpha6

How do I make conditional fields work properly with webform-7.x-4.0-alpha6 ? Expected behaviour : I created a webform content with a radio button field called "Assurance" (yes/no). The wanted ...
2
votes
1answer
250 views

Is there a rule condition to check if the url is the front page?

Just wondering if is there a rule condition to check if the url is the front page of the site?
2
votes
1answer
30 views

Rules: fire at adding term only when one of this term anscestors is other specific term

I'm trying to add menu items programatically by using rules - the item should be added after user will create a term, but I need a specific condition that I cannot accomplish - fire rule only if ONE ...
0
votes
1answer
712 views

Drupal 6 node_load with conditions

Here is the situation: I have two content types. Content type a has a CCK reference field for content type b. Now I am trying to load all the nodes from content type a that are referenced to content ...
0
votes
1answer
45 views

want to ask if there is a way that I can display a field from another content type to a field of another content type

Im quite new to drupal (7) and want to ask if there is a way that I can display a field from another content type to a field of another content type and applying condition at the same time? Here is ...
0
votes
1answer
214 views

How to expose a select field to Rules?

In Drupal 7, I have defined a new content type which has a checkbox field . The idea is that when a user chooses option A and submits the content, the system do something after creation of the ...