Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // instantiate the query using our extended query object
- $query = new EntityFieldQuery();
- // let our query know which node types we want
- $query->entityCondition('bundle', array('user'))
- ->entityCondition('entity_type', array('user'))
- ->fieldCondition('field__ser_name', 'value', $value);
- // execute the query
- $result = $query->execute();
Advertisement
Add Comment
Please, Sign In to add comment