Active
Project:
OpenAcaDept Core
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Nov 2011 at 11:09 UTC
Updated:
8 Nov 2011 at 11:09 UTC
In some views we have following code in contextual filters that checks for related content, we need to move it into separate function and make be rewrite to take into account multilingual terms.
$node = node_load(arg(1));
$terms = array();
if($node && !empty($node->field_tags[LANGUAGE_NONE])) {
foreach($node->field_tags[LANGUAGE_NONE] as $term) { $terms[] = $term['tid']; }
}
return implode('+',$terms);
This is issue is both related to OpenAcaDept Feature and Core modules.