summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-01-26 13:27:59 +0000
committerDries Buytaert <dries@buytaert.net>2003-01-26 13:27:59 +0000
commita32e3d14088cede04a6ebf55c09ea111fec3efef (patch)
treebfbb4d4925b2faadc4a226387e97547ef661fa29 /modules
parent4028362fda6f9423d95e53267fbd7ba99e96c106 (diff)
downloadbrdo-a32e3d14088cede04a6ebf55c09ea111fec3efef.tar.gz
brdo-a32e3d14088cede04a6ebf55c09ea111fec3efef.tar.bz2
- Added sitemap feature to administration pages. Requested by various
people including Michael and Moshe.
Diffstat (limited to 'modules')
-rw-r--r--modules/admin.module12
1 files changed, 11 insertions, 1 deletions
diff --git a/modules/admin.module b/modules/admin.module
index 9a8d039b6..29d49a2c2 100644
--- a/modules/admin.module
+++ b/modules/admin.module
@@ -9,7 +9,17 @@ function status($message) {
}
}
-function admin_page($mod) {
+function admin_link($type) {
+ if ($type == "admin") {
+ menu_add("sitemap", url("admin/admin/sitemap"), "Sitemap", NULL, NULL, 8);
+ }
+}
+
+function admin_admin() {
+ print menu_map();
+}
+
+function admin_page() {
global $user;
if (user_access("access administration pages")) {