Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Running a code review with the coder module on comment.admin.inc produces the following warning:
Line 191: in confirm_form, use $form_state['redirect'] instead of return (remember to change function prototype to use &$form_state)
return 'admin/content/comment';
More information on D6 form API and $form_state['redirect'] can be found at http://drupal.org/node/144132#form-state
Cheers,
Stella
Comment | File | Size | Author |
---|---|---|---|
#1 | $form_state['redirect'].patch | 691 bytes | Pancho |
Comments
Comment #1
PanchoFixed this. Also removed unneeded "return;" in comment_confirm_delete_submit(). Would be cool if you tested both...
Comment #2
Dries CreditAttribution: Dries commentedGood catch. Committed to CVS HEAD. Thanks.
Comment #3
(not verified) CreditAttribution: commentedAutomatically closed -- issue fixed for two weeks with no activity.