Drupal Question:
Download Questions PDF

How to Customize a Drupal Syndicate Feed Icon?

Drupal Interview Question
Drupal Interview Question

Answer:

For a recent project I needed to customize the feed icon in the Drupal theme I was creating. This wasn't as straight forward as I thought it would be. Being the drupal newbie that I am I went looking for it in the core templates and suggestions page only to come empty handed.
Previously I found the solution to theming a search form by using the search-block-form.tpl.php template file and thought there would be one for the feed icon too. I found the solution to this in the function reference in the form of a theme hook.
theme_feed_icon($url, $title)
This function is internally called by drupal to generate the feed icon in the Syndicate block. Our Job is to override this function.

Download Drupal Interview Questions And Answers PDF

Previous QuestionNext Question
How to backup a Drupal site?How to interact with Drupal search system?