The module Relevant Content has a function called


Which renders the nodes for the module. The comments say the following

"This is provided (the function) so that an item list is the default, however a themer can easily override this to make a teaser list or table."

I'm not really sure how to use a 'themer' to overwrite this function.

Any pointers on how to do it is appreciated.


You are the themer. In your theme, copy that function, but call it YOURTHEME_relevant_content_block. Now change the function to output whatever you want it to.

  • Thank you for your answer, I'm not really sure where I'm supposed to place the THEME_relevant_content_block function. Does it go in a specific file under the themes/MYTHEME/ directory? – Onema Nov 15 '11 at 18:34
  • Yes. It goes inside a file called template.php – Capi Etheriel Nov 16 '11 at 23:04
  • Check out the Drupal Theming Guide. Documentation is relatively good for this :-) – Chapabu Feb 13 '12 at 12:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.