1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- /**
- * @file
- * Install and uninstall schema and functions for the xmlsitemap_node module.
- */
- /**
- * Implements hook_uninstall().
- */
- function xmlsitemap_node_uninstall() {
- drupal_load('module', 'node');
- drupal_load('module', 'xmlsitemap');
- $node_types = array_keys(node_type_get_names());
- foreach ($node_types as $node_type) {
- xmlsitemap_link_bundle_delete('node', $node_type);
- }
- }
- /**
- * Cleanup variables.
- */
- function xmlsitemap_node_update_6200() {
- drupal_load('module', 'node');
- drupal_load('module', 'xmlsitemap');
- $node_types = array_keys(node_type_get_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();
- }
- /**
- * Empty update.
- */
- function xmlsitemap_node_update_6201() {
- }
|