summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-01-05 22:44:31 +0000
committerDries Buytaert <dries@buytaert.net>2002-01-05 22:44:31 +0000
commit0542bbd752d026523a5c3e252e6276302c8f97c8 (patch)
tree4694185ead4808b214505202e657c2f2f134d57b
parent01dfd4b2e0a38727871f111be69cb5bf8ad5b0ef (diff)
downloadbrdo-0542bbd752d026523a5c3e252e6276302c8f97c8.tar.gz
brdo-0542bbd752d026523a5c3e252e6276302c8f97c8.tar.bz2
- Small documentation update
-rw-r--r--modules/cloud.module23
1 files changed, 14 insertions, 9 deletions
diff --git a/modules/cloud.module b/modules/cloud.module
index 357e45501..40b6c9b5d 100644
--- a/modules/cloud.module
+++ b/modules/cloud.module
@@ -1,13 +1,18 @@
<?php
// $Id$
-function cloud_help() {
- $output .= "The cloud monitor tracks related websites and displays the last modification dates. Visitors to the host site learn about relevant sites and can easily see if there is new content. Here is how it works:";
- $output .= "<ul>";
- $output .= " <li>The site administrator enters names and URLs of the relevant pages on the cloud monitor administration page.</li>";
- $output .= " <li>Drupal's cron function, triggers the cloud module to check all the registered websites for recent changes or updates. (A page is updated when there is a 50-character difference since the last time it checked.)</li>";
- $output .= " <li>The module exports both a page and a block that display the registered sites ordered by their last modification date.</li>";
- $output .= "</ul>";
+function cloud_help($type = "administrator") {
+ if ($type == "user") {
+ $output .= "<p>". t("The cloud monitor tracks or crawls other interesting websites and displays their latest modification dates. It acts as a link watcher such that you can keep an eye on the other sites in our cloud.") ."</p>";
+ }
+ else {
+ $output .= "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. Here is how it works:";
+ $output .= "<ul>";
+ $output .= " <li>The site administrator enters names and URLs of the relevant pages on the cloud monitor administration page.</li>";
+ $output .= " <li>Drupal's cron function, triggers the cloud module to check all the registered websites for recent changes or updates. (A page is updated when there is a 50-character difference since the last time it checked.)</li>";
+ $output .= " <li>The module exports both a page and a block that display the registered sites ordered by their last modification date.</li>";
+ $output .= "</ul>";
+ }
return $output;
}
@@ -148,14 +153,14 @@ function cloud_page() {
if (user_access("access site cloud")) {
$theme->header();
- $theme->box(t("Site cloud"), cloud_list(100));
+ $theme->box(t("Site cloud"), cloud_help("user") . cloud_list(100));
$theme->footer();
}
}
function cloud_block() {
$block[0]["subject"] = t("Site cloud");
- $block[0]["content"] = cloud_list(20);
+ $block[0]["content"] = cloud_list(20) . "<br /><div align=\"right\"><a href=\"module.php?mod=cloud\">". t("more") ."</a></div>";
$block[0]["info"] = t("Site cloud");
return $block;
}