The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
14 views

EntityQuery: multiple fieldConditon with OR operator

It seems kinda trivial but I can find out an example on the Internet to do that kind of query: $entityQuery = new EntityFieldQuery(); $query = $entityQuery->entityCondition('entity_type', 'node'); ...
0
votes
2answers
47 views

Select users with only one role

How can i select all users wich have only 1 role. For example i got 4 users: User 1: Role 1, Role 2 User 2: Role 1 User 3: Role 1, Role 2 User 4: Role 1 How can i retrieve a list of users ...
1
vote
1answer
36 views

Views - Conditionally rewrite title link attribute based on field empty value

I have a Resource content type that has a Title, Link or File Attachment. The first is required, the latter two are optional. The goal is for the administrator to create a new piece of content and ...
0
votes
0answers
9 views

Why is unchanged and new value always the same in rule condition

I have a boolean field called verified defined in profile2. When this field changes from not ticked to ticked I would like to send out an email to the user. Easy I thought with rules Starting using ...
0
votes
2answers
36 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
21 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
2answers
107 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
23 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
14 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
21 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
27 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
75 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
19 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
35 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
82 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
63 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
87 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
330 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
49 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
49 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 ...
1
vote
1answer
984 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
876 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
65 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
288 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
239 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
92 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
227 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
292 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
31 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
760 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
46 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
227 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 ...