In themes that don't override theme_feed_icon() (e.g. Garland) the feed icon turns on or off depending on the RSS Permissions. In themes that do override theme_feed_icon() (e.g. Sky) sky_feed_icon() overrides rss_permissions_feed_icon() and the icon is always displayed.
It might be possible for RSS Permissions module to take back control of theme_feed_icon() by using this technique:
http://shellmultimedia.com/articles/hookthemeregistryalter-advanced-temp...
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | rss_permissions-header-954790.patch.txt | 2.43 KB | sillygwailo |
Comments
Comment #1
phpdiva commentedI will look into this.
Comment #2
Monzer Emam commentedhere the one did it for me
also check #945462-4: Port to Drupal 7
Comment #3
phpdiva commentedThanks for this!
I just made a commit to DEV version with this code, with a few changes. It should be available for download sometime today.
If we just call theme_feed_icon(), this does not use any custom theme function to style the icon. The goal of this ticket was to integrate the module with custom theming functions specifically. Right now I'm saving the current theming function name as a variable, and forcing Drupal to use our function. If the RSS icon should be displayed, then I get the theming function name from the variable, and call that.
This approach seems to work for me.
Comment #4
sillygwailoHere's a patch that removes the header
<link>element (for RSS autodiscovery), plus some coding standards (whitespace changes). It checks to see if the full URL for a site is passed torss_permissions_feed_url_access()then removes the base URL, and does a check for whether the path is a system path or an alias, so that it can work with the system path.Comment #5
phpdiva commentedHey, @Richard, did you mean to upload your patch to #945462: Port to Drupal 7?
This issue is specifically regarding the feed icon implementation in custom themes.
Comment #6
sillygwailoSure, I guess.
Comment #7
DrewMathers commentedI have tested the 12-Jan-2011 dev snapshot with the contrib theme Sky 3.11, and both the address bar and page RSS icons are successfully suppressed.
Comment #8
DrewMathers commentedJust noticed title typo.
Comment #9
DrewMathers commentedAlso successfully tested with an Artisteer 2 theme.
Comment #10
phpdiva commentedThanks, Drew!
Now as soon as this Git migration is done and I figure out how it works, I'll make a new module release with this update!
Comment #11
BenK commentedSubscribing
Comment #12
DrewMathers commentedSince this feature is now in the dev snapshot, I guess this issues should be declared fixed.