summaryrefslogtreecommitdiff
path: root/modules/block
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-10-03 19:16:04 +0000
committerDries Buytaert <dries@buytaert.net>2009-10-03 19:16:04 +0000
commitb5447770959e9d447e53e21e63faa98fcc1db329 (patch)
tree3f38cba8adefd9108019b010cde327e68bec0ebb /modules/block
parentb5199f2297c7cac6d03980bea6be9a02bbdf1738 (diff)
downloadbrdo-b5447770959e9d447e53e21e63faa98fcc1db329.tar.gz
brdo-b5447770959e9d447e53e21e63faa98fcc1db329.tar.bz2
- Patch #464862 by JohnAlbin, sun, dereine | dvessel, Jacine, Zarabadoo: added drupal_css_class() to clean class names and rename form_clean_id().
Diffstat (limited to 'modules/block')
-rw-r--r--modules/block/block.module2
1 files changed, 1 insertions, 1 deletions
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;