function theme_entity_translation_unavailable in Entity Translation 7
Theme an unvailable translation.
1 theme call to theme_entity_translation_unavailable()
File
- ./
entity_translation.module, line 994
Code
function theme_entity_translation_unavailable($variables) {
$element = $variables['element'];
$handler = entity_translation_get_handler($element['#entity_type'], $element['#entity']);
$args = array(
'%language' => t($GLOBALS['language_content']->name),
'%label' => $handler
->getLabel(),
);
$message = t('%language translation unavailable for %label.', $args);
$classes = $element['#entity_type'] . ' ' . $element['#entity_type'] . '-' . $element['#view_mode'];
return "<div class=\"{$classes}\"><div class=\"messages warning\">{$message}</div></div>";
}