use of theme_node_form and diff
olemsa - December 12, 2007 - 12:36
| Project: | Diff |
| Version: | 5.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I found out that diff invalidates any themeing you do to a node form, the result from phptemplate_node_form() is not used when editing a node only when you add a new node.
I had to comment out line 422 in diff.module:
[code]
// $form['#theme'] = 'diff_node_form';
[/code]

#1
correct, you have to implement the diff theme function instead ... this won't be needed in D6.
#2
Hi,
This worked for me as well.Commenting line 422 enables custom theming with Drupal 5.7.
#3
I know this is old, but it has had me going for about 4 hours! Instead of commenting out lines, just use:
<?phpphptemplate_diff_node_form($form) {
?>
instead of:
<?phpphptemplate_node_form($form) {
?>