Commit 89774016 authored by das-peter's avatar das-peter Committed by Dave Reid

Issue #2367513 by das-peter: Fixed xmlsitemap_menu_entity_info() did not add...

Issue #2367513 by das-peter: Fixed xmlsitemap_menu_entity_info() did not add integration data if the Entity Menu Links module is enabled.
parent c5492cc4
......@@ -46,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',
),
);
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment