Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. $currunt_nid = $entity->nid; // Get current nid
  2. $query = new EntityFieldQuery;
  3. $result = $query
  4. ->entityCondition('entity_type', 'node')
  5. ->propertyCondition('status', 1)
  6. ->fieldCondition('field_invoice_ref', 'value', $current_nid, '=')
  7. ->execute();
  8. print_r($result);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement