You are here

public function TMGMTLocaleSourceUIController::overviewFormHeader in Translation Management Tool 7

Gets overview form header.

Return value

array Header array definition as expected by theme_tablesort().

1 call to TMGMTLocaleSourceUIController::overviewFormHeader()
TMGMTLocaleSourceUIController::overviewForm in sources/locale/tmgmt_locale.ui.inc
Implements TMGMTSourceUIControllerInterface::overviewForm().

File

sources/locale/tmgmt_locale.ui.inc, line 74
Provides the I18nString source controller.

Class

TMGMTLocaleSourceUIController
Class TMGMTI18nStringDefaultSourceUIController

Code

public function overviewFormHeader() {
  $languages = array();
  foreach (language_list() as $langcode => $language) {
    $languages['langcode-' . $langcode] = array(
      'data' => check_plain($language->name),
    );
  }
  $header = array(
    'source' => array(
      'data' => t('Source text'),
    ),
  ) + $languages;
  return $header;
}