Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. $all_nodes = db_select('node','e')->fields('e',array('nid','type'));
  2. $all_nodes->addField('e','nid');
  3. $all_nodes->condition('type','author');
  4. $data = $all_nodes->execute();
  5. $the_result = $data->fetchAll(PDO::FETCH_ASSOC);
  6.  
  7. foreach ($the_result as $node){
  8. $node_load = DrupalnodeEntityNode::load($node['nid']);
  9. foreach ($node_load->field_institution_with_date as $item) {
  10. $the_entity_id = $item->entity->id();
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement