From b5447770959e9d447e53e21e63faa98fcc1db329 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 3 Oct 2009 19:16:04 +0000 Subject: - Patch #464862 by JohnAlbin, sun, dereine | dvessel, Jacine, Zarabadoo: added drupal_css_class() to clean class names and rename form_clean_id(). --- modules/block/block.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/block') diff --git a/modules/block/block.module b/modules/block/block.module index 66aed9651..14488fe1e 100644 --- a/modules/block/block.module +++ b/modules/block/block.module @@ -797,7 +797,7 @@ function template_preprocess_block(&$variables) { // Create the $content variable that templates expect. $variables['content'] = $variables['elements']['#children']; - $variables['classes_array'][] = 'block-' . $variables['block']->module; + $variables['classes_array'][] = drupal_css_class('block-' . $variables['block']->module); $variables['template_files'][] = 'block-' . $variables['block']->region; $variables['template_files'][] = 'block-' . $variables['block']->module; -- cgit v1.2.3