function i18nstrings_admin_overview in Internationalization 5.3
Same name and namespace in other branches
- 5 experimental/i18nstrings.module \i18nstrings_admin_overview()
- 5.2 experimental/i18nstrings.module \i18nstrings_admin_overview()
List of strings
1 call to i18nstrings_admin_overview()
- i18nstrings_admin in i18nstrings/
i18nstrings.module - Menu callback. Administration page
File
- i18nstrings/
i18nstrings.module, line 58 - 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} 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;
}