summaryrefslogtreecommitdiff
path: root/modules/system/system.admin.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-12-02 14:56:32 +0000
committerDries Buytaert <dries@buytaert.net>2009-12-02 14:56:32 +0000
commit92760988b9decb01831ba89bcc54056a702c3836 (patch)
tree4a27865ed1737d832e82a575521940503147cd43 /modules/system/system.admin.inc
parente7dedc4330f3d7bbc4fd861a4e5619d780bcca6c (diff)
downloadbrdo-92760988b9decb01831ba89bcc54056a702c3836.tar.gz
brdo-92760988b9decb01831ba89bcc54056a702c3836.tar.bz2
- Patch #648410 by Dave Reid: standardize add 'empty' row functionality to all tables.
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r--modules/system/system.admin.inc13
1 files changed, 2 insertions, 11 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index 0be0b2b69..06ad7f2d6 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -2493,12 +2493,7 @@ function theme_system_modules_uninstall($variables) {
);
}
- // Only display table if there are modules that can be uninstalled.
- if (empty($rows)) {
- $rows[] = array(array('data' => t('No modules are available to uninstall.'), 'colspan' => '3', 'align' => 'center', 'class' => array('message')));
- }
-
- $output = theme('table', array('header' => $header, 'rows' => $rows));
+ $output = theme('table', array('header' => $header, 'rows' => $rows, 'empty' => t('No modules are available to uninstall.')));
$output .= drupal_render_children($form);
return $output;
@@ -2648,14 +2643,11 @@ function system_date_time_formats() {
}
}
- if (empty($rows)) {
- $rows[] = array(array('data' => t('No custom date formats available. <a href="@link">Add date format</a>.', array('@link' => url('admin/config/regional/date-time/formats/add'))), 'colspan' => '5', 'class' => array('message')));
- }
-
$build['date_formats_table'] = array(
'#theme' => 'table',
'#header' => $header,
'#rows' => $rows,
+ '#empty' => ('No custom date formats available.'),
);
return $build;
@@ -3012,4 +3004,3 @@ function system_actions_remove_orphans() {
actions_synchronize(TRUE);
drupal_goto('admin/config/system/actions/manage');
}
-