ping_ping

Versions
4.6 – 6
ping_ping($name = '', $url = '')

Implementation of hook_ping().

Notifies pingomatic.com, blo.gs, and technorati.com of changes at this site.

Code

modules/ping/ping.module, line 49

<?php
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);
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.