first import

This commit is contained in:
Bachir Soussi Chiadmi
2015-04-08 11:40:19 +02:00
commit 1bc61b12ad
8435 changed files with 1582817 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
<?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() {
}