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/profile | |
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/profile')
-rw-r--r-- | modules/profile/profile.admin.inc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/profile/profile.admin.inc b/modules/profile/profile.admin.inc index e54147a8e..c7c103375 100644 --- a/modules/profile/profile.admin.inc +++ b/modules/profile/profile.admin.inc @@ -148,9 +148,6 @@ function theme_profile_admin_overview($variables) { $rows[] = array('data' => $row, 'class' => array('draggable')); } } - if (empty($rows)) { - $rows[] = array(array('data' => t('No fields available.'), 'colspan' => 7)); - } $header = array(t('Title'), t('Name'), t('Type')); if (isset($form['submit'])) { @@ -159,7 +156,7 @@ function theme_profile_admin_overview($variables) { } $header[] = array('data' => t('Operations'), 'colspan' => 2); - $output = theme('table', array('header' => $header, 'rows' => $rows, 'attributes' => array('id' => 'profile-fields'))); + $output = theme('table', array('header' => $header, 'rows' => $rows, 'empty' => t('No fields available.'), 'attributes' => array('id' => 'profile-fields'))); $output .= drupal_render_children($form); return $output; |