How do I get the list of nodes of a specific content type and their titles? A call to field_attach_load should be loading node titles, but they are not being loaded.  Perhaps I am missing something simple, since this my first Drupal hook.

This is the code I am using to query all the published Event nodes and their associated fields.

$query = new EntityFieldQuery();
$results = $query-&gt;entityCondition('entity_type', 'node')
  -&gt;propertyCondition('type', 'event')
  -&gt;propertyCondition('status', NODE_PUBLISHED)
  -&gt;execute();


  // Attach the field values to the nodes.
  $nodes = $results['node'];

  field_attach_load('node', $nodes, FIELD_LOAD_CURRENT);
  var_dump($nodes);


Unfortunately, this code doesn't work for me.

How do I get the list of nodes of a specific content type and their titles?
PLease try this-
This will load all published nodes of type event.

$query = new EntityFieldQuery();

$query-&gt;entityCondition('entity_type', 'node')
-&gt;entityCondition('bundle', 'event')
-&gt;propertyCondition('status', 1);

$result = $query-&gt;execute();

if (!empty($result['node'])) {
$nids = array_keys($result['node']);

foreach ($nids as $nid) {
$node = node_load($nid, NULL, TRUE);
// do something awesome
 }
}