function xmlsitemap_update_6140 in XML sitemap 6
Implementation of hook_update_N().
File
- ./
xmlsitemap.install, line 503 - Installation file for XML sitemap.
Code
function xmlsitemap_update_6140() {
$ret = array();
if (module_exists('xmlsitemap_term')) {
module_disable(array(
'xmlsitemap_term',
));
drupal_set_message(t('XML sitemap term has been deprecated in favor of XML sitemap taxonomy; enable it in the <a href="@modules">modules page</a>.', array(
'@modules' => url('admin/build/modules'),
)), 'status', FALSE);
$ret[] = array(
'success' => TRUE,
'query' => 'Disabled the XML sitemap term module successfully.',
);
}
if (function_exists('rules_clear_cache')) {
rules_clear_cache();
$ret[] = array(
'success' => TRUE,
'query' => 'Cleared rules cache successfully.',
);
}
return $ret;
}