Hi,

I installed the Service Links module which appends a block with links to Technorati, Digg, and others to the end of a node (article). I would like to move this block to the sidebar, so I am trying to find out how Drupal knows where a module output should be placed. My question can be generalized as follows..

When a new module is installed, how does Drupal know where the block that the module provides should be displayed, whether it should be appended to the end of a node, or whether it should be displayed at a sidebar?

If anyone can provide at least a hint, I would appreciate it a lot.

Thanks.

j.

http://www.maxi-pedia.com

Comments

nevets’s picture

Modules determine where there output is meant to be displayed, be it part of a node, the nodes links, a block, a menu item, etc.

xjessie007’s picture

Thanks for your reply. So, I should be looking for something directly in the service_links.module file? What would I be looking for, what kind of code, what does it usually say?

vm’s picture

If you can override it , I believe it would be in a theme function of the module. Though how you will shift it to a block is beyond me. Mainly because you can't just throw it in a block and expect it to work correctly as it has to be attached to the node in some way so that it doesn't get amputated as far as I know.

This may be a question better served as a support request in the issue queue of the module in question.

xjessie007’s picture

Ok, thanks to everyone, I was able to find out how to get this done. And, in the course of finding out, I discovered another three threads that relate to this, so I am posting links to them here for reference.

Here are other Drupal threads related to the same or similar problem:

http://drupal.org/node/257361
http://drupal.org/node/288612
http://drupal.org/node/214939

__________________
Drupal cache clean up - cache_clear_all()
How to delete or clear Drupal cache tables?