function xmlsitemap_node_update_6200 in XML sitemap 6.2
Same name and namespace in other branches
- 7.2 xmlsitemap_node/xmlsitemap_node.install \xmlsitemap_node_update_6200()
Cleanup variables.
File
- xmlsitemap_node/
xmlsitemap_node.install, line 92 - Install and uninstall schema and functions for the xmlsitemap_node module.
Code
function xmlsitemap_node_update_6200() {
drupal_load('module', 'node');
drupal_load('module', 'xmlsitemap');
$node_types = array_keys(node_get_types('names'));
foreach ($node_types as $node_type) {
$settings = array(
'status' => variable_get('xmlsitemap_node_status_' . $node_type, XMLSITEMAP_STATUS_DEFAULT),
'priority' => variable_get('xmlsitemap_node_priority_' . $node_type, XMLSITEMAP_PRIORITY_DEFAULT),
);
variable_set('xmlsitemap_settings_node_' . $node_type, $settings);
variable_del('xmlsitemap_node_status_' . $node_type);
variable_del('xmlsitemap_node_priority_' . $node_type);
variable_del('xmlsitemap_node_update_' . $node_type);
}
return array();
}