function legal_languages in Legal 6.8
Same name and namespace in other branches
- 7.2 legal.admin.inc \legal_languages()
- 7 legal.admin.inc \legal_languages()
Languages administration form.
1 string reference to 'legal_languages'
- legal_menu in ./
legal.module - Implementation of hook_menu().
File
- ./
legal.admin.inc, line 307 - Administration functions for the Legal module.
Code
function legal_languages() {
$latest_header = array(
t('Language'),
t('Version'),
t('Revision'),
);
$latest_rows = legal_versions_latest_get();
$rows = array();
foreach ($latest_rows as $language_name => $language) {
$row = array();
$row[] = check_plain($language_name);
$row[] = empty($language['version']) ? '-' : $language['version'];
$row[] = empty($language['revision']) ? '-' : $language['revision'];
$rows[] = $row;
}
$form['latest'] = array(
'#type' => 'fieldset',
'#title' => t('Latest Version'),
);
$form['latest']['#value'] = theme('table', $latest_header, $rows);
return $form;
}