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....

noduequeue entity

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;
}
CommentFileSizeAuthor
nodequeue_entity.png22.73 KBdeanochips
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jenlampton’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

I'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.