function ping_ping
6.x ping.module | ping_ping($name = '', $url = '') |
Implementation of hook_ping().
Notifies pingomatic.com, blo.gs, and technorati.com of changes at this site.
File
- drupal-6.x/
modules/ ping/ ping.module, line 51 - Alerts other sites that your site has been updated.
Code
function ping_ping($name = '', $url = '') {
$result = xmlrpc('http://rpc.pingomatic.com', 'weblogUpdates.ping', $name, $url);
if ($result === FALSE) {
watchdog('directory ping', 'Failed to notify pingomatic.com (site).', array(), WATCHDOG_WARNING);
}
}