Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
cfe44ef8
Commit
cfe44ef8
authored
Dec 12, 2006
by
Steven Wittens
Browse files
#100859
: Fix aggregator categorization form
parent
a5d5c6aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/bootstrap.inc
View file @
cfe44ef8
_
<?php
<?php
// $Id$
/**
...
...
modules/aggregator/aggregator.module
View file @
cfe44ef8
...
...
@@ -1061,6 +1061,7 @@ function aggregator_page_list($sql, $header, $categorize) {
$categories
=
array
();
$done
=
FALSE
;
$form
[
'items'
]
=
array
();
$form
[
'categories'
]
=
array
(
'#tree'
=>
TRUE
);
while
(
$item
=
db_fetch_object
(
$result
))
{
$form
[
'items'
][
$item
->
iid
]
=
array
(
'#value'
=>
theme
(
'aggregator_page_item'
,
$item
));
$form
[
'categories'
][
$item
->
iid
]
=
array
();
...
...
@@ -1137,7 +1138,7 @@ function aggregator_page_list_validate($form_id, &$form) {
}
function
aggregator_page_list_submit
(
$form_id
,
$form_values
)
{
foreach
(
$form_values
as
$iid
=>
$selection
)
{
foreach
(
$form_values
[
'categories'
]
as
$iid
=>
$selection
)
{
db_query
(
'DELETE FROM {aggregator_category_item} WHERE iid = %d'
,
$iid
);
foreach
(
$selection
as
$cid
)
{
if
(
$cid
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment