Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am using entity translation on my site & the translated fields where getting mixed with the node list every time some edited one of the pages, example below....
this is the quick fix i made to overcome the problem
function nodequeue_title_substitute($text, $queue, $subqueue) {
if ($queue->title == $subqueue->title) {
return $subqueue->title;
}
if ($subqueue) {
$entity = taxonomy_term_load($subqueue->reference);
if (isset($entity->vid)) {
$subqueue->title = entity_label('taxonomy_term', $entity);
}
return $subqueue->title;
}
if (empty($text)) {
return $subqueue->title;
}
$text = str_replace('%subqueue', $subqueue->title, $text);
return $text;
}
Comment | File | Size | Author |
---|---|---|---|
nodequeue_entity.png | 22.73 KB | deanochips |
Comments
Comment #1
jenlamptonI'm marking this issue as outdated because the 3.x branch is not under active development. If this issue still exists on 2,x, please reopen.