How do I load a view programmatically passing a language attribute? Tried with module_invoke and views_embed_view but none of them worked; Data is returned but not filtered by language;
Please advise. Thank you!
If your view is set up with a Contextual Filter for language, this should work:
print views_embed_view($viewname, $display_id, $languagecode);
I think you should add "Filter criteria-- Content:Language(current User's language.)". This will solve our problem.