EntityFieldQuery provides a way to query any entity.
0
votes
1answer
25 views
EntityFieldQuery for retrieve only 1 field
I'm developing a new rules action that it is called by EntityForm when a Form is submitted.
In this action I want to retrieve 1 field from "noleggiatori" content type, so this is my function:
...
-1
votes
1answer
36 views
use EntityFieldQuery to find user based on profile field value
I have a field within the user's profile set with their payroll. What I'm trying to achieve within my module is find the uid, based on the value of a payroll field.
I've tried a few things, but I ...
3
votes
3answers
61 views
How to use EntityFieldQuery etc. to return a particular field efficiently?
A taxonomy has a lot of big fields attached, but one of these fields is a short text field called external_identifier.
In code, I need to obtain an array mapping external_identifiers to tids for a ...
1
vote
0answers
20 views
EntityFieldQuery with Workflow
I need to filter an EntityFieldQuery with a given workflow state, let's say workflow it is state 21 (sid = 21). Below, the query I am using
$query_formularios_completos = new EntityFieldQuery();
...
1
vote
1answer
34 views
Access CCK Fields on Content Type EntityFieldQuery()
Okay, I've spent two days banging my head against the wall, so I'm finally going out for help...
I have a custom content type "eod_report" with a CCK field called "rfqs_received" which stores an ...
3
votes
1answer
52 views
Get fields out of an entity returned by EntityFieldQuery
I have a video content type. I run the following query in hook_cron:
$query = new EntityFieldQuery();
$query->entityCondition('entity_type', 'node');
$query->entityCondition('bundle', 'video');
...
0
votes
2answers
22 views
Field for publication status
I already browsed several posts but did not find an answer. I want to be able to make a list view that shows all my articles. Additionally the articles' teasers should show if the article has been ...
1
vote
2answers
33 views
Embedding content in a panel ctools plugin- any other options
instead of using views, on some occasions, I want to write custom code to display a list of content. I know how to create ctools content type plugins, and in here I could create my EntityFieldQuery to ...
1
vote
1answer
53 views
Best way to make an EntityFieldQuery query be case sensitive?
The case-sensitivity of queries created using EntityFieldQuery rely on the underlying database's collation [*]. So if the collation for a particular field is 'utf8_general_ci', then all the queries ...
0
votes
1answer
57 views
How to 'SELECT FROM {entity_bundle} WHERE field_A + field_B <= given_number_X' with EntityFieldQuery
$query = new EntityFieldQuery();
$query->entityCondition('entity_type', 'node')
->entityCondition('bundle', 'MYCONTENTTYPE')
// Now say for instance I would like to grab the value of
// ...
0
votes
0answers
23 views
If I turn the blocks module off, what strategy would I use to structure content within template_preprocess_page?
I'm thinking about turning off the blocks module. I don't understand why there needs to be so much complexity. I simply create a variable array within template_preprocess_page() with the elements that ...
1
vote
1answer
39 views
Views vs. EntityFieldQuery
Why would one use entityfieldquery over views? Is there any benefit to using EntityFieldQuery over using views? Is it the performance benefit? Is it the ease of use of a API? Does it provide you more ...
0
votes
1answer
127 views
EntityFieldQuery with date field
I am running the following code, retrieving a list of job openings that will expire in 7 days.
$triggerDate = new DateTime();
$triggerDate->add(new DateInterval("P7D"));
$query = new ...
1
vote
1answer
24 views
EFQ propertyCondition Doesn't work in Simpletest
This Entity Field Query works as expected outside of simpletest:
$query->entityCondition('entity_type', 'node')
->fieldCondition('field_exhibition_window_start', 'value', $date, '<=')
...
0
votes
0answers
101 views
Get Data from Drupal 7 EntityFieldQuery to populate Highcharts Graph
I have a EntityFieldQuery that has 2 fields one is an integer and the other is a date I am having trouble creating the query and then passing it to Highcharts options object for a spline graph.
Here ...