Commit 8492e4fc authored by Dave Reid's avatar Dave Reid
Browse files

#971342 by Dave Reid: Officially disable support for Ask.com, Moreover, and...

#971342 by Dave Reid: Officially disable support for Ask.com, Moreover, and Yahoo search engine submission.
parent 7b2ca2a3
...@@ -31,8 +31,16 @@ function xmlsitemap_engines_uninstall() { ...@@ -31,8 +31,16 @@ function xmlsitemap_engines_uninstall() {
} }
/** /**
* Implements hook_update_last_removed(). * Deprecate support for Ask.com, Moreover, and Yahoo! search engines.
*/ */
function xmlsitemap_engines_update_last_removed() { function xmlsitemap_engines_update_6202() {
return 6201; $engines = variable_get('xmlsitemap_engines_engines', array());
$removed = array(
'ask' => 'Ask.com',
'moreover' => 'Moreover',
'yahoo' => 'Yahoo.com',
);
$engines = array_diff($engines, array_keys($removed));
variable_set('xmlsitemap_engines_engines', $engines);
return t('The following search engines have deprecated their XML sitemap ping services and have been disabled: !list.', array('!list' => implode(', ', $removed)));
} }
...@@ -209,16 +209,6 @@ function xmlsitemap_engines_xmlsitemap_engine_info() { ...@@ -209,16 +209,6 @@ function xmlsitemap_engines_xmlsitemap_engine_info() {
'url' => 'http://www.google.com/webmasters/tools/ping?sitemap=[sitemap]', 'url' => 'http://www.google.com/webmasters/tools/ping?sitemap=[sitemap]',
'help url' => 'http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156184', 'help url' => 'http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156184',
); );
$engines['yahoo'] = array(
'name' => t('Yahoo!'),
'url' => 'http://search.yahooapis.com/SiteExplorerService/V1/updateNotification?appid=SitemapWriter&url=[sitemap]',
'help url' => 'http://help.yahoo.com/l/us/yahoo/search/siteexplorer/manage/siteexplorer-45.html',
);
$engines['ask'] = array(
'name' => t('Ask.com'),
'url' => 'http://submissions.ask.com/ping?sitemap=[sitemap]',
'help url' => 'http://about.ask.com/en/docs/about/webmasters.shtml#22',
);
$engines['bing'] = array( $engines['bing'] = array(
'name' => t('Bing'), 'name' => t('Bing'),
'url' => 'http://www.bing.com/webmaster/ping.aspx?siteMap=[sitemap]', 'url' => 'http://www.bing.com/webmaster/ping.aspx?siteMap=[sitemap]',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment