You are here

function theme_tmgmt_ui_translator_overview_item in Translation Management Tool 7

Adds a description to the translator entity on the entity overview form.

See also

theme_entity_ui_overview_item()

1 theme call to theme_tmgmt_ui_translator_overview_item()
TMGMTTranslatorUIController::overviewFormRow in ui/includes/tmgmt_ui.controller.translator.inc
Helper method for building a row in the overview form.

File

ui/includes/tmgmt_ui.theme.inc, line 275
Theme file stub for tmgmt.

Code

function theme_tmgmt_ui_translator_overview_item($variables) {
  $output = theme('entity_ui_overview_item', $variables);
  if (!empty($variables['description'])) {
    $output = '<div class="tmgmt-ui-translator-label-wrapper">' . $output . '<div class="description">' . $variables['description'] . '</div></div>';
  }
  return $output;
}