Closed (fixed)
Project:
Service links
Version:
6.x-2.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Nov 2010 at 16:38 UTC
Updated:
21 Nov 2010 at 16:02 UTC
Jump to comment: Most recent file
Comments
Comment #1
TheCrow commentedA trouble like this was raised for a similar module: http://drupal.org/node/761332#comment-3663410
maybe it help you.
Edit:
I made some change and seem that service links hide... need study this more, sorry.
Comment #2
rene_w commentedFor the record, I tried out the change in the comment you linked (since I also use Global Redirect), but that did not change anything, unfortunately.
Comment #3
TheCrow commentedseem that there is a problem when executing the nodeapi - load but service links doesnt change the theme, really weird...
[Edit:]
Changing in service_links_nodeapi()
the row:
case 'load':with:
case 'prepare':seem work for links but break the services in node
Comment #4
TheCrow commentedI think i found the solution!
The trouble is due to the call of node_load() function inside the hook_init().
When a module use the theme() function in the nodeapi()->load operation the default theme become the default render theme for the node.
Thus every module shouldn't call the theme() function into the load operation otherwise changes made from blogtheme are nulls, either, blogtheme should avoid to call the node_load().
Summarizing there are 2 ways:
Obviously im lazy to change Service Links code and i suggest the second :P
I attach the patch against the blogtheme v. 1.4
Comment #5
rene_w commentedThanks a lot for figuring this out; I patched the blogtheme module as suggested and now have it working again with service links!
Comment #6
rene_w commented