Skip to content

Instantly share code, notes, and snippets.

@micahredding
Created December 11, 2013 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save micahredding/7918222 to your computer and use it in GitHub Desktop.
Save micahredding/7918222 to your computer and use it in GitHub Desktop.
EntityFieldQuery
$query = new EntityFieldQuery();
$entities = $query->entityCondition('entity_type', 'node')
->entityCondition('bundle', 'client')
->propertyCondition('status', 1)
->fieldCondition('field_client_user', 'value', $user->uid, 'EQUALS')
->execute();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment