nodecomment_form won't properly load in panels
hadsie - October 10, 2009 - 14:07
| Project: | Node comments |
| Version: | 6.x-2.0-beta1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | reviewed & tested by the community |
Jump to:
Description
When I try and add a pane that uses nodecomment_form it breaks on that panel with the following error message:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '_node_form' was given in .../drupal/includes/form.inc on line 371.Looking at the nodecomment_form.inc file the problem seems to be on with this code on line 29:
$comment_type = variable_get('comment_type_'. $node->type, variable_get('default_comment_type', ''));I believe that the variable 'comment_type' should actually be 'node_comment_type' and adding changing that seems to fix the problem. I've attached a simple patch.
| Attachment | Size |
|---|---|
| comment_form_ctools.patch | 791 bytes |

#1
Hi,
I confirm the issue and I confirm that the patch correctly fix it.