From c1c612b12826ab9bf65283f5430f4c7558e24699 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 31 Jan 2002 20:23:44 +0000 Subject: - Made the calendar module accept a $date parameter such that you can jump directly to a certain date in the archives. Also made the calendar link to itself such that it is self-contained. - Code beautifications: quoted a lot of arrays, removed dead code and simplified a few things. - Replaced the Calendar class by one function "calendar_display": using a class (or class instance, or object) doesn't make sense in the archives' case. - Renamed "calendar.module" to "archive.module". - Fixed a /problem/ with node settings not always being saved like expected. - Reorganized the user menu: renamed a couple of links for clarity and structure. - Fixed a few typos. --- modules/forum.module | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/forum.module') diff --git a/modules/forum.module b/modules/forum.module index 139f04dd7..658f45f78 100644 --- a/modules/forum.module +++ b/modules/forum.module @@ -38,6 +38,10 @@ function forum_link($type) { $links[] = "". t("forum") .""; } + if ($type == "menu.create" && user_access("administer nodes")) { + $links[] = "". t("create forum") .""; + } + return $links ? $links : array(); } -- cgit v1.2.3