You are here

function ping_ping in Drupal 6

Same name and namespace in other branches
  1. 4 modules/ping.module \ping_ping()
  2. 5 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 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);
  }
}