contrib modules security updates

This commit is contained in:
Bachir Soussi Chiadmi
2016-10-13 12:10:40 +02:00
parent ffd758abc9
commit 747127f643
732 changed files with 67976 additions and 23207 deletions

View File

@@ -8,9 +8,9 @@ files[] = xmlsitemap_menu.module
files[] = xmlsitemap_menu.install
files[] = xmlsitemap_menu.test
; Information added by drupal.org packaging script on 2012-12-08
version = "7.x-2.0-rc2+0-dev"
; Information added by Drupal.org packaging script on 2016-05-25
version = "7.x-2.3"
core = "7.x"
project = "xmlsitemap"
datestamp = "1354931808"
datestamp = "1464191061"

View File

@@ -31,6 +31,7 @@ function xmlsitemap_menu_entity_info_alter(&$info) {
'process callback' => 'xmlsitemap_menu_xmlsitemap_process_menu_links',
),
'bundle label' => t('Menu'),
'token type' => 'menu_link',
);
foreach (menu_get_menus() as $type => $name) {
@@ -45,6 +46,15 @@ function xmlsitemap_menu_entity_info_alter(&$info) {
);
}
}
else {
// If the entity type already exists ensure the xmlsitemap is added.
$info['menu_link'] += array(
'uri callback' => 'xmlsitemap_menu_menu_link_uri',
'xmlsitemap' => array(
'process callback' => 'xmlsitemap_menu_xmlsitemap_process_menu_links',
),
);
}
}
/**
@@ -93,7 +103,7 @@ function xmlsitemap_menu_xmlsitemap_process_menu_links(array $mlids, array $xmls
$menu_item['xmlsitemap'] = $xmlsitemap;
}
$link = xmlsitemap_menu_create_link($menu_item);
xmlsitemap_link_save($link);
xmlsitemap_link_save($link, array($link['type'] => $menu_item));
}
// Set the global user variable back to the original user.
@@ -278,3 +288,16 @@ function xmlsitemap_menu_variables() {
}
return $defaults;
}
/**
* Implements hook_features_pipe_COMPONENT_alter().
*
* Add variables to exported menus.
*/
function xmlsitemap_menu_features_pipe_menu_custom_alter(&$pipe, $data, $export) {
if (!empty($data)) {
foreach ($data as $menu_name) {
$pipe['variable'][] = "xmlsitemap_settings_menu_link_{$menu_name}";
}
}
}