Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
node.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Aug 2006 at 06:35 UTC
Updated:
10 Mar 2012 at 00:57 UTC
Jump to comment: Most recent file
Comments
Comment #1
andyatkinson commentedThanks frjo. I made the change to my 4.7.3 version and service_links now works as expected. Hopefully this patch is integrated into the core comment.module.
Comment #2
drummThis is leaving the $teaser argument as FALSE and setting $page to TRUE. $page is "Whether the node is being displayed by itself as a page." (http://api.drupal.org/api/HEAD/function/node_view), so I think this is incorrect since the node is being shown with a comment form.
Comment #3
frjo commentedSo it should be "node_view($node, FALSE)" instead but that doesn't work and teaser should be set to FALSE by default anyway. Time to start looking elsewhere.
I looked at node_view() in node.module and found this:
The teaser is set to the opposite of page, but there are pages like e.g comment/reply where both teaser and page should be set to FALSE. I believe this is more correct:
From http://api.drupal.org/api/4.7/function/hook_link:
I have tested this on my own page and it makes teaser to be set to FALSE on comment reply pages for hook_link just as it is for hook_nodeapi.
To display links on a comment reply page after this change you can check for:
This is how I will solve the original problem with the servicelink.module.
If this is the correct solution I would like to have it backported to 4.7.
Comment #4
ricabrantes commentedThis patch is applies?? Feature requests go to the current development
version...
Comment #5
saulovacerat commentedThanks, you've helped me a bit with this
Comment #6
damien tournoud commentedFixed after a long discussion in http://drupal.org/node/135926, so marking this one as duplicate.