You are here

function i18nstrings_admin_overview in Internationalization 5.2

Same name and namespace in other branches
  1. 5.3 i18nstrings/i18nstrings.module \i18nstrings_admin_overview()
  2. 5 experimental/i18nstrings.module \i18nstrings_admin_overview()

List of strings

1 call to i18nstrings_admin_overview()
i18nstrings_admin in experimental/i18nstrings.module
Menu callback. Administration page

File

experimental/i18nstrings.module, line 52
Internationalization (i18n) package - translattable strings

Code

function i18nstrings_admin_overview() {
  $output = '';
  $header = array(
    t('String Id'),
    t('Default'),
    '',
  );
  $result = db_query("SELECT DISTINCT(strid) FROM {i18n_locale_strings} ORDER BY strid", i18n_default_language());
  $rows = array();
  while ($str = db_fetch_object($result)) {
    $rows[] = array(
      $str->strid,
      tt($str->strid),
      l(t('edit'), 'admin/settings/i18n/strings/edit/' . $str->strid),
    );
  }
  $output .= theme('table', $header, $rows);
  return $output;
}