summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-06-09 08:55:51 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-06-09 08:55:51 +0000
commitf44646030bba7fd63de63df7044009b8fc802ced (patch)
treebdabb3ac151084e439d4a155c1d346fea1694693
parent10f808b37ba4567a696eeabb8b5cde79b7c9c8f8 (diff)
downloadbrdo-f44646030bba7fd63de63df7044009b8fc802ced.tar.gz
brdo-f44646030bba7fd63de63df7044009b8fc802ced.tar.bz2
- applying Scott's patch.
- removing the need to enable weblogs ping so it matches locale and bloggerapi.
-rw-r--r--modules/weblogs.module14
1 files changed, 3 insertions, 11 deletions
diff --git a/modules/weblogs.module b/modules/weblogs.module
index 4cd01c62a..5c06b1a7c 100644
--- a/modules/weblogs.module
+++ b/modules/weblogs.module
@@ -1,25 +1,18 @@
<?php
// $Id$
-function weblogs_conf_options() {
- $output .= form_select("Weblogs ping", "weblogs_ping", variable_get("weblogs_ping", 0), array("Disabled", "Enabled"), "Enabling Weblogs ping will inform <a href=\"http://www.weblogs.com/\">Weblogs.com</a> when your site updates. Requires crontab.");
-
- return $output;
-}
-
function weblogs_help() {
- $output .= "<p><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>.</p>";
+ $output = "<p><a href=\"http://www.weblogs.com/\">Weblogs.com</a> is a website that tracks and displays links to changed 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>. Requires crontab.</p>";
return $output;
}
function weblogs_system($field){
- $system["description"] = t("Alerts weblogs.com whenever your site is updated.");
+ $system["description"] = t("Alerts weblogs.com that your site has been updated.");
return $system[$field];
}
function weblogs_cron() {
-
- if (variable_get("weblogs_ping", 0) && variable_get("site_name", 0) && variable_get("site_slogan", 0)) {
+ if (variable_get("site_name", 0) && variable_get("site_slogan", 0)) {
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", "") ." - ". variable_get("site_slogan", ""), path_uri());
}
@@ -29,7 +22,6 @@ function weblogs_cron() {
}
function weblogs_notify($name, $url) {
-
$client = new xmlrpc_client("/RPC2", "rpc.weblogs.com", 80);
$message = new xmlrpcmsg("weblogUpdates.ping", array(new xmlrpcval($name), new xmlrpcval($url)));