summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-11-21 20:55:36 +0000
committerDries Buytaert <dries@buytaert.net>2006-11-21 20:55:36 +0000
commit6ae6dc0d85901a25a6fcc85efa0673a643895c11 (patch)
tree139f225123d6c4524ef7fc553f7b8f8ad20ec4d6 /modules/system/system.module
parent837bacfaaff36c136b5958282675d70f351fa3dd (diff)
downloadbrdo-6ae6dc0d85901a25a6fcc85efa0673a643895c11.tar.gz
brdo-6ae6dc0d85901a25a6fcc85efa0673a643895c11.tar.bz2
- Patch #87298 by webchick, neil, dww et al: show version numbers on modules page.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r--modules/system/system.module3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index 7bd9dd41c..e3b4cbdb6 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -1230,6 +1230,7 @@ function system_modules($form_values = NULL) {
// Traverse the files retrieved and build the form.
foreach ($files as $filename => $file) {
$form['name'][$filename] = array('#value' => $file->info['name']);
+ $form['version'][$filename] = array('#value' => $file->info['version']);
$form['description'][$filename] = array('#value' => t($file->info['description']));
$options[$filename] = '';
if ($file->status) {
@@ -1497,6 +1498,7 @@ function theme_system_modules($form) {
$header[] = t('Throttle');
}
$header[] = t('Name');
+ $header[] = t('Version');
$header[] = t('Description');
// Pull package information from module list and start grouping modules.
@@ -1521,6 +1523,7 @@ function theme_system_modules($form) {
$row[] = array('data' => drupal_render($form['throttle'][$key]), 'align' => 'center');
}
$row[] = '<strong>'. drupal_render($form['name'][$key]) .'</strong>';
+ $row[] = drupal_render($form['version'][$key]);
$row[] = array('data' => drupal_render($form['description'][$key]), 'class' => 'description');
$rows[] = $row;
}