By ramonovelar on
Hello,
I have a link in the header of a view displayed in a block, to link to the aggregator. If i put "aggregator", it does not find the page because actual path are en/aggregator, es/aggregator and eu/aggregator. I need the code of current language to build the good path.
I have tried to get the language code of the page in the path, but using this:
$path = drupal_get_path_alias($_GET['q']); //get alias of URL
print ($path);// to see what the $path array looks like
I get : node/43
I've been trying with global language, but I don't get values. I don't know nothing in PHP, so I would appreciate any hints to sort this out.
Many thanks, R