summaryrefslogtreecommitdiff
path: root/modules/cloud.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-12-24 15:40:32 +0000
committerDries Buytaert <dries@buytaert.net>2002-12-24 15:40:32 +0000
commit22fa9ed70a512feb6d603d24218e9a7db7610a0e (patch)
tree16b69a177c1645a7d3474bfe06e0571d7280b5d9 /modules/cloud.module
parentca07ff36d600e778a71dbe52dce9e82c3f1ebd92 (diff)
downloadbrdo-22fa9ed70a512feb6d603d24218e9a7db7610a0e.tar.gz
brdo-22fa9ed70a512feb6d603d24218e9a7db7610a0e.tar.bz2
- Refactored the administration pages.
Diffstat (limited to 'modules/cloud.module')
-rw-r--r--modules/cloud.module8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/cloud.module b/modules/cloud.module
index 0847437c4..522756bc1 100644
--- a/modules/cloud.module
+++ b/modules/cloud.module
@@ -40,7 +40,11 @@ function cloud_link($type) {
}
if ($type == "admin" && user_access("administer site cloud")) {
- $links[] = la(t("site cloud"), array("mod" => "cloud"));
+ $cloud = "The cloud monitor tracks or crawls other interesting websites and displays their last modification dates. Visitors to the host site learn about relevant sites and can easily see if there is new content.";
+
+ menu_add("blogrolling", "admin.php?mod=cloud", "Maintain the sites in your blogroll.", $cloud, NULL, 3);
+ menu_add("add new site", "admin.php?mod=cloud&op=add", "Add a new sites to your blogroll.", NULL, "blogrolling", 3);
+ menu_add("help", "admin.php?mod=cloud&op=help", "More information about the site cloud.", NULL, "blogrolling", 9);
}
return $links ? $links : array();
@@ -89,7 +93,7 @@ function cloud_form($edit = array()) {
$form .= form_textfield("Site URL", "link", $edit["link"], 50, 255, "The URL of the website you want to monitor for updates.");
$form .= form_textfield("URL to monitor", "feed", $edit["feed"], 50, 255, "The URL of the page you want to monitor for updates. Likely to be same as the site's URL but useful to monitor framed pages and more accurate when pointed to a XML/RSS/RDF feed.");
$form .= form_select("Update interval", "refresh", ($edit["refresh"] ? $edit["refresh"] : 3600), $period, "The refresh interval indicating how often you want to check this site for updates. Requires crontab.");
- $form .= form_select("Change threshold", "threshold", ($edit["threshold"] ? $edit["threshold"] : 40), $threshold, "The number of bytes the site must have been modified before concidered changed.");
+ $form .= form_select("Change threshold", "threshold", ($edit["threshold"] ? $edit["threshold"] : 40), $threshold, "The number of bytes the site must have been modified before considered changed.");
$form .= form_submit("Submit");