From cefebd913f2b14df227dc56f749678c413de8c7e Mon Sep 17 00:00:00 2001 From: Kjartan Mannes <kjartan@2.no-reply.drupal.org> Date: Thu, 5 Oct 2006 18:22:48 +0000 Subject: [PATCH] Reverting code incorrectly included in the previous commit. --- modules/aggregator/aggregator.module | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index 4fdab57bcb17..ff6088e7c012 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -1064,14 +1064,13 @@ function aggregator_page_category() { function aggregator_page_list($sql, $header, $categorize) { $form['#base'] = 'aggregator_page_list'; $form['header'] = array('#value' => $header); - $form['#id'] = 'aggregator'; $result = pager_query($sql, 20); $categories = array(); $done = FALSE; $form['items'] = array(); while ($item = db_fetch_object($result)) { - $form[$item->iid]['items'] = array('#value' => theme('aggregator_page_item', $item)); - $form[$item->iid]['categories'] = array(); + $form['items'][$item->iid] = array('#value' => theme('aggregator_page_item', $item)); + $form['categories'][$item->iid] = array(); if ($categorize) { $categories_result = db_query('SELECT c.cid, c.title, ci.iid FROM {aggregator_category} c LEFT JOIN {aggregator_category_item} ci ON c.cid = ci.cid AND ci.iid = %d', $item->iid); $selected = array(); @@ -1084,7 +1083,7 @@ function aggregator_page_list($sql, $header, $categorize) { } } $done = TRUE; - $form[$item->iid]['categories'] = array( + $form['categories'][$item->iid] = array( '#type' => variable_get('aggregator_category_selector', 'checkboxes'), '#default_value' => $selected, '#options' => $categories, '#size' => 10, '#multiple' => TRUE @@ -1110,8 +1109,8 @@ function _aggregator_page_list($sql, $op, $header = '') { else { $output = '<div id="aggregator">'; $output .= $header; - foreach ($form as $item) { - $output .= $item['items']['#value']; + foreach ($form['items'] as $item) { + $output .= $item['#value']; } $output .= '</div>'; $output .= $form['pager']['#value']; -- GitLab