summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-03-27 22:51:47 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-03-27 22:51:47 +0000
commitbbae5e815d17426280d5ae60466e1331b10dba63 (patch)
tree33f1a178dcc52aeda85177da4f4ecd6724c51298
parent54dfc577ba08b119559ee62ff016e899b5c411e5 (diff)
downloadbrdo-bbae5e815d17426280d5ae60466e1331b10dba63.tar.gz
brdo-bbae5e815d17426280d5ae60466e1331b10dba63.tar.bz2
- #18795: Display message to forum admin if there are no forums yet.
-rw-r--r--modules/forum.module6
-rw-r--r--modules/forum/forum.module6
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);
}
/**