I'm having difficulty figuring out how to get what I want here;

building a form, and admin area of a module, and I want to allow the user to choose a Select dropdown, which was populated by core entityreference, which listed only content of type PAGE.

Anyone know of some example code for that?

Accepted answer

Eventually, after another cup of coffee, this works: 

  $query = new EntityFieldQuery();

  $query

    ->entityCondition('entity_type', 'node')

    ->propertyCondition('type', 'page');

  $nodes = $query->execute();

  $rn=array(0=>'None');

  foreach($nodes['node'] as $ln){

    if($nn=node_load($ln->entity_id)){

      $rn[$ln->entity_id]=$nn->title; //build an assoc array for use on SELECT field

    }

  }

  return $rn;
 

Where the returned $rn array is used as the options array for a Form Select element.

Comments

Eventually, after another cup of coffee, this works: 

  $query = new EntityFieldQuery();

  $query

    ->entityCondition('entity_type', 'node')

    ->propertyCondition('type', 'page');

  $nodes = $query->execute();

  $rn=array(0=>'None');

  foreach($nodes['node'] as $ln){

    if($nn=node_load($ln->entity_id)){

      $rn[$ln->entity_id]=$nn->title; //build an assoc array for use on SELECT field

    }

  }

  return $rn;
 

Where the returned $rn array is used as the options array for a Form Select element.