You are here

public function TMGMTI18nStringDefaultSourceUIController::overviewFormHeader in Translation Management Tool 7

Gets overview form header.

Return value

array Header array definition as expected by theme_tablesort().

1 call to TMGMTI18nStringDefaultSourceUIController::overviewFormHeader()
TMGMTI18nStringDefaultSourceUIController::overviewForm in sources/i18n_string/tmgmt_i18n_string.ui.inc

File

sources/i18n_string/tmgmt_i18n_string.ui.inc, line 20
Provides the I18nString source controller.

Class

TMGMTI18nStringDefaultSourceUIController
Class TMGMTI18nStringDefaultSourceUIController

Code

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