Blog Archive

Monday, 16 December 2013

Entity Field Query example Drupal 7.


<?php
  $query = new EntityFieldQuery();
  $result = $query
    ->entityCondition('entity_type', 'profile2')
    ->entityCondition('uid','1')
    ->execute();
  echo "<pre>";
  print_r($result);
?>

No comments:

Post a Comment