diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-02 14:56:32 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-02 14:56:32 +0000 |
commit | 92760988b9decb01831ba89bcc54056a702c3836 (patch) | |
tree | 4a27865ed1737d832e82a575521940503147cd43 /modules/book | |
parent | e7dedc4330f3d7bbc4fd861a4e5619d780bcca6c (diff) | |
download | brdo-92760988b9decb01831ba89bcc54056a702c3836.tar.gz brdo-92760988b9decb01831ba89bcc54056a702c3836.tar.bz2 |
- Patch #648410 by Dave Reid: standardize add 'empty' row functionality to all tables.
Diffstat (limited to 'modules/book')
-rw-r--r-- | modules/book/book.admin.inc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/modules/book/book.admin.inc b/modules/book/book.admin.inc index c20aaeb64..81a07637f 100644 --- a/modules/book/book.admin.inc +++ b/modules/book/book.admin.inc @@ -19,12 +19,7 @@ function book_admin_overview() { $rows[] = array(l($book['title'], $book['href'], $book['options']), l(t('edit order and titles'), 'admin/content/book/' . $book['nid'])); } - // If no books were found, let the user know. - if (empty($rows)) { - $rows[] = array(array('data' => t('No books available.'), 'colspan' => 2)); - } - - return theme('table', array('header' => $headers, 'rows' => $rows)); + return theme('table', array('header' => $headers, 'rows' => $rows, 'empty' => t('No books available.'))); } /** @@ -260,4 +255,3 @@ function theme_book_admin_table($variables) { return theme('table', array('header' => $header, 'rows' => $rows, 'attributes' => array('id' => 'book-outline'))); } - |