You are here

function theme_rss_permissions_feed_icon in RSS Permissions 6

Overriding theme_feed_icon(). Check permission to view the feed before displaying the icon.

1 string reference to 'theme_rss_permissions_feed_icon'
rss_permissions_theme_registry_alter in ./rss_permissions.module
Implementation of hook_theme_registry_alter to override theme_feed_icon().

File

./rss_permissions.module, line 152

Code

function theme_rss_permissions_feed_icon($url, $title) {
  if (rss_permissions_feed_url_access($url)) {

    // Use the current feed_icon theme to style the icon.
    $theme_function = variable_get('rss_permissions_feed_icon_theme', 'theme_feed_icon');
    $arguments = func_get_args();
    return call_user_func_array($theme_function, $arguments);
  }
  return '';
}