function legal_languages in Legal 7
Same name and namespace in other branches
- 6.8 legal.admin.inc \legal_languages()
- 7.2 legal.admin.inc \legal_languages()
Languages administration form.
1 string reference to 'legal_languages'
- legal_menu in ./
legal.module - Implements hook_menu().
File
- ./
legal.admin.inc, line 474 - Administration UI 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', array(
'header' => $latest_header,
'rows' => $rows,
));
return $form;
}