0

I have a node for different language, but I would like to load node for "en" language only using entity_load after firing entity query.

How can I achieve it using this function in Drupal 7

3
  • I have just used this function, but when i am in china country it takes nodes details from china country ,actually i dont need nodes from china, i just use english node details. can we get it ? entity_load('node', array_keys($entities['node'])); Commented Jun 16, 2015 at 8:03
  • try to change the default language in your setup, like in [this post] (drupal.org/node/1319238) Commented Jun 16, 2015 at 13:37
  • Sorry I can't do this, In my international site i just want one page in which i just need to load english nodes only. Commented Jun 17, 2015 at 10:11

1 Answer 1

0

Try to install i18n module then you should be able to create a new content type for this node and set the language to EN under the "Multilingual Settings" tab.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.