We want to use the blockify module to display the feed icons in another region.
To be able to use blockify we have to NOT display the feed icons in the links attached to the view.
We added the 'feed_in_links' setting to the form and are using function drupal_add_feed() in includes/common.inc to add the feeds (see views_rss module).
One issue arose.
The icons are all defaulting to the default rss feed icon.
This behavior can be traced back through function drupal_add_feed() to function theme_feed_icon() in includes/theme.inc.
To circumvent this issue we had to implement a solution using MODULE_preprocess_HOOK.
Unfortunately function kml_preprocess_feed_icon() will not do so we had to fall back to a very ugly implementation of function kml_preprocess_image() in theme/kml_views.theme.inc.
This patch was develpoed for the website www.devtrac.ug and was sponsored by Unicef Uganda.
| Comment | File | Size | Author |
|---|---|---|---|
| kml_blockify.patch | 5.48 KB | Jan van Diepen |
Comments
Comment #1
Jan van Diepen commentedPatch runs on recommended release 7.x-1.0-alpha1 as well.
The fourth hunk succeeds with an offset of 1 line.