summaryrefslogtreecommitdiff
path: root/modules/path
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/path
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/path')
-rw-r--r--modules/path/path.admin.inc8
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/path/path.admin.inc b/modules/path/path.admin.inc
index b1fd47c00..74dde0c8b 100644
--- a/modules/path/path.admin.inc
+++ b/modules/path/path.admin.inc
@@ -61,15 +61,11 @@ function path_admin_overview($keys = NULL) {
$rows[] = $row;
}
- if (empty($rows)) {
- $empty_message = $keys ? t('No URL aliases found.') : t('No URL aliases available. <a href="@link">Add alias</a>.', array('@link' => url('admin/config/search/path/add'))) ;
- $rows[] = array(array('data' => $empty_message, 'colspan' => ($multilanguage ? 5 : 4)));
- }
-
$build['path_table'] = array(
'#theme' => 'table',
'#header' => $header,
- '#rows' => $rows
+ '#rows' => $rows,
+ '#empty' => t('No URL aliases available.'),
);
$build['path_pager'] = array('#theme' => 'pager');