Hi,

I am the 'print' module maintainer, and I am currently trying to fix an issue (http://drupal.org/node/195397) which I have traced to the book module.. What happens there is that it is calling node_invoke_nodeapi($node, 'print');.

I can solve it in my module by making it call that function with type 'view' instead of 'print', but that doesn't fix the normal book 'Printer-friendly' link. I see two ways of fixing it for everyone:
1. Changing the book module call (may break other content types)
2. Changing the CCK nodeapi calls

Since I think that option 2 is the best, I am attaching a patch to fix this.

The following issues for the cck module are duplicates of this one:
http://drupal.org/node/174026
http://drupal.org/node/126578
http://drupal.org/node/83308

CommentFileSizeAuthor
#1 cck_print.patch824 bytesjcnventura
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jcnventura’s picture

FileSize
824 bytes

The attachment got lost...

jcnventura’s picture

Version: 5.x-1.6-1 » 5.x-1.7

Bumping the issue to the latest version, as nothing seems to be done about this..

jcnventura’s picture

Title: Add 'print' to content_nodeapi » Support the 'print' operation in content_nodeapi and fieldgroup_nodeapi
Version: 5.x-1.7 » 5.x-1.10
Status: Needs review » Reviewed & tested by the community

Bumping it and putting it RTBC to see if this is merged (eventually before the end of Drupal 5 support).

The patch is trivial and adds support to an unsupported hook_nodeapi operation in Drupal 5.

João

yched’s picture

Bumping for my own tracking.

KarenS’s picture

Status: Reviewed & tested by the community » Fixed

Getting a new release out so I slipped this in since it is a no-brainer.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.