diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-03-11 08:13:14 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-03-11 08:13:14 +0000 |
commit | a170d1f8f22f10201a4b474c367a8170122f911e (patch) | |
tree | 2ae91fb9a5cc44c4666a7b05594ab031a1a7f206 | |
parent | 33853f6d9c1f4f345adc5c480b0b1bb0af7fb6f1 (diff) | |
download | brdo-a170d1f8f22f10201a4b474c367a8170122f911e.tar.gz brdo-a170d1f8f22f10201a4b474c367a8170122f911e.tar.bz2 |
- Patch #231437 by catch, Rob, freso et al: remove ping module from core.
-rw-r--r-- | CHANGELOG.txt | 3 | ||||
-rw-r--r-- | INSTALL.txt | 4 | ||||
-rw-r--r-- | modules/ping/ping.info | 6 | ||||
-rw-r--r-- | modules/ping/ping.module | 59 | ||||
-rw-r--r-- | modules/system/system.module | 2 |
5 files changed, 6 insertions, 68 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index acf1c2f9b..7b44c75af 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -5,6 +5,9 @@ Drupal 7.0, xxxx-xx-xx (development version) - Usability: * Implemented drag-and-drop positioning for input format listings. * Provide descriptions for permissions on the administration page. +- Removed ping module: + * This module has been removed from the core download. Contributed + alternatives are available. Drupal 6.0, 2008-02-13 ---------------------- diff --git a/INSTALL.txt b/INSTALL.txt index 2dd21220a..a15786c95 100644 --- a/INSTALL.txt +++ b/INSTALL.txt @@ -206,8 +206,8 @@ INSTALLATION Many Drupal modules have periodic tasks that must be triggered by a cron maintenance task, including search module (to build and update the index used for keyword searching), aggregator module (to retrieve feeds from other - sites), ping module (to notify other sites about new or updated content), and - system module (to perform routine maintenance and pruning on system tables). + sites), and system module (to perform routine maintenance and pruning on + system tables). To activate these tasks, call the cron page by visiting http://www.example.com/cron.php, which, in turn, executes tasks on behalf of installed modules. diff --git a/modules/ping/ping.info b/modules/ping/ping.info deleted file mode 100644 index 1f08a3c91..000000000 --- a/modules/ping/ping.info +++ /dev/null @@ -1,6 +0,0 @@ -; $Id$ -name = Ping -description = Alerts other sites when your site has been updated. -package = Core - optional -version = VERSION -core = 7.x diff --git a/modules/ping/ping.module b/modules/ping/ping.module deleted file mode 100644 index fb2b20428..000000000 --- a/modules/ping/ping.module +++ /dev/null @@ -1,59 +0,0 @@ -<?php -// $Id$ - -/** - * @file - * Alerts other sites that your site has been updated. - */ - -/** - * Implementation of hook_help(). - */ -function ping_help($path, $arg) { - switch ($path) { - case 'admin/help#ping': - $output = '<p>'. t('The ping module is useful for notifying interested sites that your site has changed. It automatically sends notifications, or "pings", to the <a href="@external-http-pingomatic-com">pingomatic</a> service about new or updated content. In turn, <a href="@external-http-pingomatic-com">pingomatic</a> notifies other popular services, including weblogs.com, Technorati, blo.gs, BlogRolling, Feedster.com, and Moreover.', array('@external-http-pingomatic-com' => 'http://pingomatic.com/')) .'</p>'; - $output .= '<p>'. t('The ping module requires a correctly configured <a href="@cron">cron maintenance task</a>.', array('@cron' => url('admin/reports/status'))) .'</p>'; - $output .= '<p>'. t('For more information, see the online handbook entry for <a href="@ping">Ping module</a>.', array('@ping' => 'http://drupal.org/handbook/modules/ping/')) .'</p>'; - return $output; - } -} - -/** - * Implementation of hook_cron(). - * - * Fire off notifications of updates to remote sites. - */ -function ping_cron() { - global $base_url; - - if (variable_get('site_name', 0)) { - if (db_result(db_query("SELECT COUNT(*) FROM {node} WHERE status = 1 AND (created > '". variable_get('cron_last', time()) ."' OR changed > '". variable_get('cron_last', time()) ."')"))) { - _ping_notify(variable_get('site_name', ''), $base_url); - } - } -} - -/** - * Call hook_ping() in all modules to notify remote sites that there is - * new content at this one. - */ -function _ping_notify($name, $url) { - module_invoke_all('ping', $name, $url); -} - -/** - * Implementation of hook_ping(). - * - * Notifies pingomatic.com, blo.gs, and technorati.com of changes at this site. - */ -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); - } -} - - diff --git a/modules/system/system.module b/modules/system/system.module index 67a32cee6..b499b46b8 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -54,7 +54,7 @@ function system_help($path, $arg) { $output .= '<ul><li>'. t('support for enabling and disabling <a href="@modules">modules</a>. Drupal comes packaged with a number of core modules; each module provides a discrete set of features and may be enabled depending on the needs of your site. A wide array of additional modules contributed by members of the Drupal community are available for download at the <a href="@drupal-modules">Drupal.org module page</a>.', array('@modules' => url('admin/build/modules'), '@drupal-modules' => 'http://drupal.org/project/modules')) .'</li>'; $output .= '<li>'. t('support for enabling and disabling <a href="@themes">themes</a>, which determine the design and presentation of your site. Drupal comes packaged with several core themes and additional contributed themes are available at the <a href="@drupal-themes">Drupal.org theme page</a>.', array('@themes' => url('admin/build/themes'), '@drupal-themes' => 'http://drupal.org/project/themes')) .'</li>'; $output .= '<li>'. t('a robust <a href="@cache-settings">caching system</a> that allows the efficient re-use of previously-constructed web pages and web page components. Drupal stores the pages requested by anonymous users in a compressed format; depending on your site configuration and the amount of your web traffic tied to anonymous visitors, Drupal\'s caching system may significantly increase the speed of your site.', array('@cache-settings' => url('admin/settings/performance'))) .'</li>'; - $output .= '<li>'. t('a set of routine administrative operations that rely on a correctly-configured <a href="@cron">cron maintenance task</a> to run automatically. A number of other modules, including the feed aggregator, ping module and search also rely on <a href="@cron">cron maintenance tasks</a>. For more information, see the online handbook entry for <a href="@handbook">configuring cron jobs</a>.', array('@cron' => url('admin/reports/status'), '@handbook' => 'http://drupal.org/cron')) .'</li>'; + $output .= '<li>'. t('a set of routine administrative operations that rely on a correctly-configured <a href="@cron">cron maintenance task</a> to run automatically. A number of other modules, including the feed aggregator, and search also rely on <a href="@cron">cron maintenance tasks</a>. For more information, see the online handbook entry for <a href="@handbook">configuring cron jobs</a>.', array('@cron' => url('admin/reports/status'), '@handbook' => 'http://drupal.org/cron')) .'</li>'; $output .= '<li>'. t('basic configuration options for your site, including <a href="@date-settings">date and time settings</a>, <a href="@file-system">file system settings</a>, <a href="@clean-url">clean URL support</a>, <a href="@site-info">site name and other information</a>, and a <a href="@site-maintenance">site maintenance</a> function for taking your site temporarily off-line.', array('@date-settings' => url('admin/settings/date-time'), '@file-system' => url('admin/settings/file-system'), '@clean-url' => url('admin/settings/clean-urls'), '@site-info' => url('admin/settings/site-information'), '@site-maintenance' => url('admin/settings/site-maintenance'))) .'</li></ul>'; $output .= '<p>'. t('For more information, see the online handbook entry for <a href="@system">System module</a>.', array('@system' => 'http://drupal.org/handbook/modules/system/')) .'</p>'; return $output; |