You are here

function theme_tmgmt_local_translation_form in Translation Management Tool 7

Renders a tables containing a group of data items belonging to the same field.

File

translators/tmgmt_local/includes/tmgmt_local.theme.inc, line 6

Code

function theme_tmgmt_local_translation_form($variables) {
  $result = '';

  // Get through all available translations.
  $translation = $variables['element']['translation'];
  foreach (element_children($translation) as $children_name) {
    $children = $translation[$children_name];
    $result .= drupal_render($children);
  }

  // We have rendered translation children so lets remove them.
  unset($variables['element']['translation']);

  // Render the rest of elements(form actions, CSRF tokens, etc.)
  $result .= drupal_render_children($variables['element']);
  return $result;
}