summaryrefslogtreecommitdiff
path: root/modules/aggregator.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-03-02 19:16:41 +0000
committerDries Buytaert <dries@buytaert.net>2006-03-02 19:16:41 +0000
commit1001b7079d19128bb55a71c4fcb5b989400cba31 (patch)
tree3d753ecf9ab5dc1b5babb90b8c0821b348b5246a /modules/aggregator.module
parent360ab25d22eb12b7065a13a7f3abc7cf71e65e9d (diff)
downloadbrdo-1001b7079d19128bb55a71c4fcb5b989400cba31.tar.gz
brdo-1001b7079d19128bb55a71c4fcb5b989400cba31.tar.bz2
- Patch #47267 by joshk: made aggregator categorization work.
Diffstat (limited to 'modules/aggregator.module')
-rw-r--r--modules/aggregator.module7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/aggregator.module b/modules/aggregator.module
index cf3eb7189..4247e68fe 100644
--- a/modules/aggregator.module
+++ b/modules/aggregator.module
@@ -62,7 +62,7 @@ function aggregator_settings() {
$form['aggregator_category_selector'] = array(
'#type' => 'radios', '#title' => t('Category selection type'), '#default_value' => variable_get('aggregator_category_selector', 'check'),
- '#options' => array('check' => t('checkboxes'), 'select' => t('multiple selector')),
+ '#options' => array('checkboxes' => t('checkboxes'), 'select' => t('multiple selector')),
'#description' => t('The type of category selection widget which is shown on categorization pages. Checkboxes are easier to use; a multiple selector is good for working with large numbers of categories.')
);
return $form;
@@ -999,9 +999,8 @@ function aggregator_page_list_validate($form_id, &$form) {
}
}
-function aggregator_page_list_submit($form_id, $form) {
- global $form_values;
- foreach ($form_values['categories'] as $iid => $selection) {
+function aggregator_page_list_submit($form_id, $form_values) {
+ foreach ($form_values as $iid => $selection) {
db_query('DELETE FROM {aggregator_category_item} WHERE iid = %d', $iid);
foreach ($selection as $cid) {
if ($cid) {