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
91e152b8
Commit
91e152b8
authored
Feb 04, 2006
by
Dries
Browse files
- Patch
#47705
by DriesK: comment moderation/approval wasn't working due to a bug with its forms.
parent
035fc5c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/comment.module
View file @
91e152b8
...
...
@@ -952,7 +952,6 @@ function comment_operations($action = NULL) {
* Menu callback; present an administrative comment listing.
*/
function
comment_admin_overview
(
$type
=
'new'
)
{
global
$form_values
;
$edit
=
$_POST
[
'edit'
];
if
(
$edit
[
'operation'
]
==
'delete'
)
{
...
...
@@ -993,13 +992,7 @@ function comment_admin_overview($type = 'new') {
}
$form
[
'comments'
]
=
array
(
'#type'
=>
'checkboxes'
,
'#options'
=>
$comments
);
$form
[
'pager'
]
=
array
(
'#value'
=>
theme
(
'pager'
,
NULL
,
50
,
0
));
$form
[
'#method'
]
=
'post'
;
$form
[
'#action'
]
=
url
(
'admin/comment/action'
);
$output
=
drupal_get_form
(
'comment_admin_overview'
,
$form
);
return
$output
;
return
drupal_get_form
(
'comment_admin_overview'
,
$form
);
}
/**
...
...
modules/comment/comment.module
View file @
91e152b8
...
...
@@ -952,7 +952,6 @@ function comment_operations($action = NULL) {
* Menu callback; present an administrative comment listing.
*/
function
comment_admin_overview
(
$type
=
'new'
)
{
global
$form_values
;
$edit
=
$_POST
[
'edit'
];
if
(
$edit
[
'operation'
]
==
'delete'
)
{
...
...
@@ -993,13 +992,7 @@ function comment_admin_overview($type = 'new') {
}
$form
[
'comments'
]
=
array
(
'#type'
=>
'checkboxes'
,
'#options'
=>
$comments
);
$form
[
'pager'
]
=
array
(
'#value'
=>
theme
(
'pager'
,
NULL
,
50
,
0
));
$form
[
'#method'
]
=
'post'
;
$form
[
'#action'
]
=
url
(
'admin/comment/action'
);
$output
=
drupal_get_form
(
'comment_admin_overview'
,
$form
);
return
$output
;
return
drupal_get_form
(
'comment_admin_overview'
,
$form
);
}
/**
...
...
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