summaryrefslogtreecommitdiff
path: root/modules/block/block.tpl.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-04-26 14:10:40 +0000
committerDries Buytaert <dries@buytaert.net>2010-04-26 14:10:40 +0000
commitb8664945dc3cbbb25f33b7664306739f96cde5b9 (patch)
treea854ebfe74ee8ae5f3035175ce276388fc01b93e /modules/block/block.tpl.php
parentb94665f5aec34875c61ac28db847b104026b429e (diff)
downloadbrdo-b8664945dc3cbbb25f33b7664306739f96cde5b9.tar.gz
brdo-b8664945dc3cbbb25f33b7664306739f96cde5b9.tar.bz2
- Patch #710172 by alexpott, Pasqualle: HTML ids for blocks should not contain underscores.
Diffstat (limited to 'modules/block/block.tpl.php')
-rw-r--r--modules/block/block.tpl.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/block/block.tpl.php b/modules/block/block.tpl.php
index d4ebf89cc..f3cf6440f 100644
--- a/modules/block/block.tpl.php
+++ b/modules/block/block.tpl.php
@@ -35,13 +35,14 @@
* - $is_front: Flags true when presented in the front page.
* - $logged_in: Flags true when the current user is a logged-in member.
* - $is_admin: Flags true when the current user is an administrator.
+ * - $block_html_id: A valid HTML ID and guaranteed unique.
*
* @see template_preprocess()
* @see template_preprocess_block()
* @see template_process()
*/
?>
-<div id="block-<?php print $block->module . '-' . $block->delta; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>
+<div id="<?php print $block_html_id; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>
<?php print render($title_prefix); ?>
<?php if ($block->subject): ?>