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
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

moshe weitzman - December 12, 2007 - 15:01
Status:active» closed

correct, you have to implement the diff theme function instead ... this won't be needed in D6.

#2

manasiv - October 27, 2008 - 09:35

Hi,
This worked for me as well.Commenting line 422 enables custom theming with Drupal 5.7.

#3

Balefire - March 24, 2009 - 15:47

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) {
?>

 
 

Drupal is a registered trademark of Dries Buytaert.