From 1486dc8f92cc5c84f57465529a3ea1bc39e119c1 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 6 Nov 2004 12:56:05 +0000 Subject: - Make Drupal ping Yahoo.com. --- modules/ping.module | 13 +++++++++++++ modules/ping/ping.module | 13 +++++++++++++ 2 files changed, 26 insertions(+) (limited to 'modules') diff --git a/modules/ping.module b/modules/ping.module index dcd560ea3..09db4f572 100644 --- a/modules/ping.module +++ b/modules/ping.module @@ -107,5 +107,18 @@ function ping_ping($name = '', $url = '') { if (!$result || $result->faultCode()) { watchdog('error', t('Failed to notify technorati.com.')); } + + unset($client); + + $client = new xmlrpc_client('/RPC2', 'api.my.yahoo.com', 80); + + $message = new xmlrpcmsg('weblogUpdates.ping', array(new xmlrpcval($name), new xmlrpcval($feed))); + + $result = $client->send($message); + + if (!$result || $result->faultCode()) { + watchdog('error', t('Failed to notify yahoo.com.')); + } } + ?> diff --git a/modules/ping/ping.module b/modules/ping/ping.module index dcd560ea3..09db4f572 100644 --- a/modules/ping/ping.module +++ b/modules/ping/ping.module @@ -107,5 +107,18 @@ function ping_ping($name = '', $url = '') { if (!$result || $result->faultCode()) { watchdog('error', t('Failed to notify technorati.com.')); } + + unset($client); + + $client = new xmlrpc_client('/RPC2', 'api.my.yahoo.com', 80); + + $message = new xmlrpcmsg('weblogUpdates.ping', array(new xmlrpcval($name), new xmlrpcval($feed))); + + $result = $client->send($message); + + if (!$result || $result->faultCode()) { + watchdog('error', t('Failed to notify yahoo.com.')); + } } + ?> -- cgit v1.2.3