From 79b016d915d64425af460fd424627668e2b4a2d0 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 10 Apr 2008 10:28:23 +0000 Subject: - Patch #216072 by recidive, David Rothstein, ptalindstrom et al: switched from numeric block IDs to string IDs. The short explanation is that Drupal uses a lot of numeric deltas in the block system; blocks are identified by the 'module' and the 'delta'. In early Drupal, delta was numeric, but somewhere along the line it was changed to be possibly a string. In modern Drupal, block overrides are easily done via block-MODULE-DELTA.tpl.php. The primary motivation to switch to string IDs everywhere is to make these deltas friendlier to themers: block-user-0.tpl.php --> block-user-navigation.tpl.php block-user-1.tpl.php --> block-user-login.tpl.php You get the picture. --- modules/poll/poll.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/poll/poll.module') diff --git a/modules/poll/poll.module b/modules/poll/poll.module index 68df707a7..615e0fd9f 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -134,10 +134,10 @@ function _poll_menu_access($node, $perm, $inspect_allowvotes) { * * Generates a block containing the latest poll. */ -function poll_block($op = 'list', $delta = 0) { +function poll_block($op = 'list', $delta = '') { if (user_access('access content')) { if ($op == 'list') { - $blocks[0]['info'] = t('Most recent poll'); + $blocks['recent']['info'] = t('Most recent poll'); return $blocks; } else if ($op == 'view') { -- cgit v1.2.3