function ping_ping in Drupal 5
Same name and namespace in other branches
- 4 modules/ping.module \ping_ping()
- 6 modules/ping/ping.module \ping_ping()
Implementation of hook_ping().
Notifies pingomatic.com, blo.gs, and technorati.com of changes at this site.
File
- modules/
ping/ ping.module, line 49 - 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', t('Failed to notify pingomatic.com (site).'), WATCHDOG_WARNING);
}
}