From a170d1f8f22f10201a4b474c367a8170122f911e Mon Sep 17 00:00:00 2001
From: Dries Buytaert
Date: Tue, 11 Mar 2008 08:13:14 +0000
Subject: - Patch #231437 by catch, Rob, freso et al: remove ping module from
core.
---
modules/ping/ping.info | 6 -----
modules/ping/ping.module | 59 --------------------------------------------
modules/system/system.module | 2 +-
3 files changed, 1 insertion(+), 66 deletions(-)
delete mode 100644 modules/ping/ping.info
delete mode 100644 modules/ping/ping.module
(limited to '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 @@
-'. t('The ping module is useful for notifying interested sites that your site has changed. It automatically sends notifications, or "pings", to the pingomatic service about new or updated content. In turn, pingomatic notifies other popular services, including weblogs.com, Technorati, blo.gs, BlogRolling, Feedster.com, and Moreover.', array('@external-http-pingomatic-com' => 'http://pingomatic.com/')) .'
';
- $output .= ''. t('The ping module requires a correctly configured cron maintenance task.', array('@cron' => url('admin/reports/status'))) .'
';
- $output .= ''. t('For more information, see the online handbook entry for Ping module.', array('@ping' => 'http://drupal.org/handbook/modules/ping/')) .'
';
- 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 .= '- '. t('support for enabling and disabling modules. 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 Drupal.org module page.', array('@modules' => url('admin/build/modules'), '@drupal-modules' => 'http://drupal.org/project/modules')) .'
';
$output .= '- '. t('support for enabling and disabling themes, which determine the design and presentation of your site. Drupal comes packaged with several core themes and additional contributed themes are available at the Drupal.org theme page.', array('@themes' => url('admin/build/themes'), '@drupal-themes' => 'http://drupal.org/project/themes')) .'
';
$output .= '- '. t('a robust caching system 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'))) .'
';
- $output .= '- '. t('a set of routine administrative operations that rely on a correctly-configured cron maintenance task to run automatically. A number of other modules, including the feed aggregator, ping module and search also rely on cron maintenance tasks. For more information, see the online handbook entry for configuring cron jobs.', array('@cron' => url('admin/reports/status'), '@handbook' => 'http://drupal.org/cron')) .'
';
+ $output .= '- '. t('a set of routine administrative operations that rely on a correctly-configured cron maintenance task to run automatically. A number of other modules, including the feed aggregator, and search also rely on cron maintenance tasks. For more information, see the online handbook entry for configuring cron jobs.', array('@cron' => url('admin/reports/status'), '@handbook' => 'http://drupal.org/cron')) .'
';
$output .= '- '. t('basic configuration options for your site, including date and time settings, file system settings, clean URL support, site name and other information, and a site maintenance 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'))) .'
';
$output .= ''. t('For more information, see the online handbook entry for System module.', array('@system' => 'http://drupal.org/handbook/modules/system/')) .'
';
return $output;
--
cgit v1.2.3