diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-03-27 22:51:47 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-03-27 22:51:47 +0000 |
commit | bbae5e815d17426280d5ae60466e1331b10dba63 (patch) | |
tree | 33f1a178dcc52aeda85177da4f4ecd6724c51298 /modules | |
parent | 54dfc577ba08b119559ee62ff016e899b5c411e5 (diff) | |
download | brdo-bbae5e815d17426280d5ae60466e1331b10dba63.tar.gz brdo-bbae5e815d17426280d5ae60466e1331b10dba63.tar.bz2 |
- #18795: Display message to forum admin if there are no forums yet.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/forum.module | 6 | ||||
-rw-r--r-- | modules/forum/forum.module | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/modules/forum.module b/modules/forum.module index 8d7512e2d..e086cf991 100644 --- a/modules/forum.module +++ b/modules/forum.module @@ -235,9 +235,11 @@ function forum_overview() { } } - - return theme('table', $header, $rows); } + else { + $rows[] = array(array('data' => '<em>' . t('There are no existing containers or forums. You may add some on the <a href="%container">add container</a> or <a href="%forum">add forum</a> pages.', array('%container' => url('admin/forum/add/container'), '%forum' => url('admin/forum/add/forum'))) . '</em>', 'colspan' => 2)); + } + return theme('table', $header, $rows); } /** diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 8d7512e2d..e086cf991 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -235,9 +235,11 @@ function forum_overview() { } } - - return theme('table', $header, $rows); } + else { + $rows[] = array(array('data' => '<em>' . t('There are no existing containers or forums. You may add some on the <a href="%container">add container</a> or <a href="%forum">add forum</a> pages.', array('%container' => url('admin/forum/add/container'), '%forum' => url('admin/forum/add/forum'))) . '</em>', 'colspan' => 2)); + } + return theme('table', $header, $rows); } /** |