diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-09-26 10:04:09 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-09-26 10:04:09 +0000 |
commit | f104d3cc12134fc574373d6a643d9c84a317de44 (patch) | |
tree | 838bcdb9cff17d43ec39a5ebdfd3274916839580 /modules/cloud.module | |
parent | 645d026e098a4dccef1bbbf0e40b9eecc8599daa (diff) | |
download | brdo-f104d3cc12134fc574373d6a643d9c84a317de44.tar.gz brdo-f104d3cc12134fc574373d6a643d9c84a317de44.tar.bz2 |
- Committed the admin menu integration patch. Thanks Adrian, Stefan and others.
Diffstat (limited to 'modules/cloud.module')
-rw-r--r-- | modules/cloud.module | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/cloud.module b/modules/cloud.module index 8895ade66..4e6ea5f25 100644 --- a/modules/cloud.module +++ b/modules/cloud.module @@ -58,11 +58,13 @@ function cloud_link($type) { $links[] = l(t("site cloud"), "cloud", array("title" => t("Monitor other sites in the cloud."))); } - if ($type == "admin" && user_access("administer site cloud")) { - menu("admin/syndication", "content syndication", NULL, NULL, 5); - menu("admin/syndication/cloud", "site cloud", "cloud_admin", cloud_help("admin/syndication/cloud")); - menu("admin/syndication/cloud/add", "add new site", "cloud_admin", cloud_help("admin/syndication/cloud/add")); - menu("admin/syndication/cloud/help", "help", "cloud_help", NULL, 9); + if ($type == "system") { + if (user_access("administer site cloud")) { + menu("admin/syndication", "content syndication", NULL, NULL, 5); + menu("admin/syndication/cloud", "site cloud", "cloud_admin", cloud_help("admin/syndication/cloud")); + menu("admin/syndication/cloud/add", "add new site", "cloud_admin", cloud_help("admin/syndication/cloud/add")); + menu("admin/syndication/cloud/help", "help", "cloud_help", NULL, 9); + } } return $links; |