summaryrefslogtreecommitdiff
path: root/modules/aggregator
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-04-10 10:28:23 +0000
committerDries Buytaert <dries@buytaert.net>2008-04-10 10:28:23 +0000
commit79b016d915d64425af460fd424627668e2b4a2d0 (patch)
treec5363a2e9c451b10be1ee26f222c60621e2e4a4b /modules/aggregator
parentee08784f880fb214d882da6338fdc7c9b6c797c3 (diff)
downloadbrdo-79b016d915d64425af460fd424627668e2b4a2d0.tar.gz
brdo-79b016d915d64425af460fd424627668e2b4a2d0.tar.bz2
- 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.
Diffstat (limited to 'modules/aggregator')
-rw-r--r--modules/aggregator/aggregator.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module
index ba8344a8a..36f5eb0eb 100644
--- a/modules/aggregator/aggregator.module
+++ b/modules/aggregator/aggregator.module
@@ -300,7 +300,7 @@ function aggregator_cron() {
*
* Generates blocks for the latest news items in each category and feed.
*/
-function aggregator_block($op = 'list', $delta = 0, $edit = array()) {
+function aggregator_block($op = 'list', $delta = '', $edit = array()) {
if (user_access('access news feeds')) {
if ($op == 'list') {
$result = db_query('SELECT cid, title FROM {aggregator_category} ORDER BY title');