From bbae5e815d17426280d5ae60466e1331b10dba63 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Sun, 27 Mar 2005 22:51:47 +0000 Subject: - #18795: Display message to forum admin if there are no forums yet. --- modules/forum.module | 6 ++++-- modules/forum/forum.module | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'modules') 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' => '' . t('There are no existing containers or forums. You may add some on the add container or add forum pages.', array('%container' => url('admin/forum/add/container'), '%forum' => url('admin/forum/add/forum'))) . '', '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' => '' . t('There are no existing containers or forums. You may add some on the add container or add forum pages.', array('%container' => url('admin/forum/add/container'), '%forum' => url('admin/forum/add/forum'))) . '', 'colspan' => 2)); + } + return theme('table', $header, $rows); } /** -- cgit v1.2.3