Commit 1ac3d35c authored by Dave Reid's avatar Dave Reid

by Dave Reid: Fixed bundle link to edit the user XML sitemap settings.

parent 8492e4fc
......@@ -626,11 +626,11 @@ function xmlsitemap_add_link_bundle_settings(array &$form, array &$form_state, $
}
function xmlsitemap_link_bundle_settings_form(array $form, array &$form_state, array $bundle) {
if (empty($form_state['ajax']) && !empty($bundle['info']['admin']['real path'])) {
if (empty($form_state['ajax']) && $admin_path = xmlsitemap_get_bundle_path($bundle['entity'], $bundle['bundle'])) {
// If this is a non-ajax form, redirect to the bundle administration page.
$destination = drupal_get_destination();
unset($_GET['destination']);
drupal_goto($bundle['info']['admin']['real path'], array('query' => $destination));
drupal_goto($admin_path, array('query' => $destination));
}
else {
drupal_set_title( t('@bundle XML sitemap settings', array('@bundle' => $bundle['info']['label'])));
......
......@@ -31,6 +31,7 @@ function xmlsitemap_menu_entity_info_alter(&$info) {
'xmlsitemap' => array(
'process callback' => 'xmlsitemap_menu_xmlsitemap_process_menu_links',
),
'bundle label' => t('Menu'),
);
foreach (menu_get_menus() as $type => $name) {
......
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