SHARE
TWEET

Untitled

a guest Aug 12th, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data
Top