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');
$query->propertyCondition('status', 1);
$results = $query->execute();
This returns number of entity object with property nid
, vid
and type
. I want to use this object to find a value of a particular field of the video (say duration). I don't want to use node_load
, because I would have done that in the first place instead of using the query. How can this be done?