summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-12-12 09:44:50 +0000
committerDries Buytaert <dries@buytaert.net>2001-12-12 09:44:50 +0000
commita82346b02bd00289cc833fcb26befe679e1c37a8 (patch)
treeac886a25828968e2937cd5f3aca30c7db2a7f641
parentd0b3ff859a446b18ed6beb35859ca5100fafaa61 (diff)
downloadbrdo-a82346b02bd00289cc833fcb26befe679e1c37a8.tar.gz
brdo-a82346b02bd00289cc833fcb26befe679e1c37a8.tar.bz2
- Added "help"-function for Drupal's "weblogs.com"-module.
-rw-r--r--modules/weblogs.module6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/weblogs.module b/modules/weblogs.module
index deba41a5b..3b1509383 100644
--- a/modules/weblogs.module
+++ b/modules/weblogs.module
@@ -1,11 +1,17 @@
<?php
// $Id$
+function weblogs_help() {
+ $output .= "<a href=\"http://www.weblogs.com/\">Weblogs.com</a> is a website that tracks and displays updates to weblogs and news-oriented websites. To get your Drupal site listed, weblogs.com must be informed about your site's updates. This is the job of the weblog module and when installed, the administrator doesn't have to do anything to participate in the <a href=\"http://www.weblogs.com/\">weblogs.com system</a>. The weblog module automatically notifies weblogs.com when your site is updated. To do so, Drupal implements the <a href=\"http://www.xmlrpc.com/weblogsCom/\">XML-RPC interface of weblogs.com</a>.";
+ return $output;
+}
+
function weblogs_cron() {
if (db_num_rows(db_query("SELECT nid FROM node WHERE status = 1 AND moderate = 0 AND (created > '". variable_get("weblogs_cron_last", time()) ."' OR changed > '". variable_get("weblogs_cron_last", time()) ."')"), 1)) {
weblogs_notify(variable_get("site_name", "drupal") ." - ". variable_get("site_slogan", ""), path_uri());
}
+
variable_set("weblogs_cron_last", time());
}