Entity Field Query example Drupal 7. December 16, 2013 <?php $query = new EntityFieldQuery(); $result = $query ->entityCondition('entity_type', 'profile2') ->entityCondition('uid','1') ->execute(); echo "<pre>"; print_r($result); ?> Read more