summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-11-30 10:39:15 +0000
committerDries Buytaert <dries@buytaert.net>2003-11-30 10:39:15 +0000
commit800a58f571e4f6cd4288653abf505cc385eb8d2d (patch)
tree1d1d0a42a215193de32690f4b499a98cf0a2181b /modules
parentf10cf4756e1ba8f07c78ab919de09c28db212650 (diff)
downloadbrdo-800a58f571e4f6cd4288653abf505cc385eb8d2d.tar.gz
brdo-800a58f571e4f6cd4288653abf505cc385eb8d2d.tar.bz2
- Removed duplicated code. Reported by Goba.
Diffstat (limited to 'modules')
-rw-r--r--modules/archive.module12
-rw-r--r--modules/archive/archive.module12
-rw-r--r--modules/search.module8
-rw-r--r--modules/search/search.module8
4 files changed, 0 insertions, 40 deletions
diff --git a/modules/archive.module b/modules/archive.module
index 594e5f7b7..f915e1884 100644
--- a/modules/archive.module
+++ b/modules/archive.module
@@ -194,18 +194,6 @@ function archive_link($type) {
}
}
- if ($type == "system") {
- if (user_access("access content")) {
- menu("archive", t("archives"), "archive_page", 0, 1);
- }
- }
-
- if ($type == "system") {
- if (user_access("access content")) {
- menu("archive", t("archives"), "archive_page", 0, 1);
- }
- }
-
return $links;
}
diff --git a/modules/archive/archive.module b/modules/archive/archive.module
index 594e5f7b7..f915e1884 100644
--- a/modules/archive/archive.module
+++ b/modules/archive/archive.module
@@ -194,18 +194,6 @@ function archive_link($type) {
}
}
- if ($type == "system") {
- if (user_access("access content")) {
- menu("archive", t("archives"), "archive_page", 0, 1);
- }
- }
-
- if ($type == "system") {
- if (user_access("access content")) {
- menu("archive", t("archives"), "archive_page", 0, 1);
- }
- }
-
return $links;
}
diff --git a/modules/search.module b/modules/search.module
index 43c016156..efb5876c1 100644
--- a/modules/search.module
+++ b/modules/search.module
@@ -46,14 +46,6 @@ function search_link($type) {
menu("search", t("search"), "search_page", 0, 1);
}
- if ($type == "system" && user_access("search content")) {
- menu("search", t("search"), "search_page", 0, 1);
- }
-
- if ($type == "system" && user_access("search content")) {
- menu("search", t("search"), "search_page", 0, 1);
- }
-
return $links;
}
diff --git a/modules/search/search.module b/modules/search/search.module
index 43c016156..efb5876c1 100644
--- a/modules/search/search.module
+++ b/modules/search/search.module
@@ -46,14 +46,6 @@ function search_link($type) {
menu("search", t("search"), "search_page", 0, 1);
}
- if ($type == "system" && user_access("search content")) {
- menu("search", t("search"), "search_page", 0, 1);
- }
-
- if ($type == "system" && user_access("search content")) {
- menu("search", t("search"), "search_page", 0, 1);
- }
-
return $links;
}