Download & Extend

use of theme_node_form and diff

Project:Diff
Version:5.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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]

Comments

#1

Status:active» closed (fixed)

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:

<?php
  phptemplate_diff_node_form
($form) {
?>

instead of:
<?php
  phptemplate_node_form
($form) {
?>
nobody click here