- Small documentation update

4.0.x
Dries Buytaert 2002-01-05 22:44:31 +00:00
parent 01dfd4b2e0
commit 0542bbd752
1 changed files with 14 additions and 9 deletions

View File

@ -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:";
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;
}