You are here

function xmlsitemap_engines_update_6202 in XML sitemap 6.2

Same name and namespace in other branches
  1. 7.2 xmlsitemap_engines/xmlsitemap_engines.install \xmlsitemap_engines_update_6202()

Deprecate support for Ask.com, Moreover, and Yahoo! search engines.

File

xmlsitemap_engines/xmlsitemap_engines.install, line 110
Install, update and uninstall functions for the xmlsitemap_engines module.

Code

function xmlsitemap_engines_update_6202() {
  $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);
  $ret[] = array(
    'success' => TRUE,
    'query' => t('The following search engines have deprecated their XML sitemap ping services and have been disabled: !list.', array(
      '!list' => implode(', ', $removed),
    )),
  );
  return $ret;
}