From 476e2cde8e3c5d09a7ef9d3a66eaa87a59a893c5 Mon Sep 17 00:00:00 2001
From: Robert Allerstorfer <roball@405360.no-reply.drupal.org>
Date: Fri, 23 Sep 2011 08:43:16 +0200
Subject: [PATCH] Correct link in Multistep Menu block under "Group list" for
 content type names containing an underline

---
 multistep.module |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/multistep.module b/multistep.module
index aa17c84..4926d17 100644
--- a/multistep.module
+++ b/multistep.module
@@ -77,6 +77,7 @@ function multistep_menu() {
  * Implementation of hook_block().
  */
 function multistep_block($op = 'list', $delta = 0, $edit = array()) {
+  $delta_urltranscoded = preg_replace('/[_]/', '-', $delta);
   switch ($op) {
     case 'list':
       $content_types = content_types();
@@ -112,7 +113,7 @@ function multistep_block($op = 'list', $delta = 0, $edit = array()) {
       $form['list'] = array(
         '#type' => 'item',
         '#title' => t('Group list'),
-        '#description' => t('To change which groups should appear on the menu list, !link and change the configuration in each group.', array('!link' => l('click here', 'admin/content/node-type/' . $delta . '/fields'))),
+        '#description' => t('To change which groups should appear on the menu list, !link and change the configuration in each group.', array('!link' => l('click here', 'admin/content/node-type/' . $delta_urltranscoded . '/fields'))),
       );
       return $form;
     case 'save':
-- 

