How do I construct an entity condition so that it loads current revision of all nodes? This is my attempt.
$query = new EntityFieldQuery(); $result = $query->entityCondition('entity_type', 'node') ->entityCondition('bundle', 'xxxxx') ->fieldCondition('xxx_module','tid', $tid,'=') ->age(FIELD_LOAD_CURRENT) ->execute();
Instead of loading the current revision, it loads the published revision.