function theme_feed_icon

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 theme.inc theme_feed_icon($variables)
cle7 theme.inc theme_feed_icon($variables)
elmsmedia7 theme.inc theme_feed_icon($variables)
icor7 theme.inc theme_feed_icon($variables)
meedjum_blog7 theme.inc theme_feed_icon($variables)
mooc7 theme.inc theme_feed_icon($variables)

Returns HTML for a feed icon.

Parameters

$variables: An associative array containing:

  • url: An internal system path or a fully qualified external URL of the feed.
  • title: A descriptive title of the feed.

Related topics

5 theme calls to theme_feed_icon()
aggregator_page_sources in modules/aggregator/aggregator.pages.inc
Page callback: Displays all the feeds used by the aggregator.
drupal_add_feed in includes/common.inc
Adds a feed URL for the current page.
node_block_view in modules/node/node.module
Implements hook_block_view().
template_preprocess_aggregator_feed_source in modules/aggregator/aggregator.pages.inc
Processes variables for aggregator-feed-source.tpl.php.
views_plugin_style_rss::attach_to in sites/all/modules/ulmus/views/plugins/views_plugin_style_rss.inc
12 string references to the theme hook from theme_feed_icon()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

aggregator_page_sources in modules/aggregator/aggregator.pages.inc
Page callback: Displays all the feeds used by the aggregator.
drupal_add_feed in includes/common.inc
Adds a feed URL for the current page.
drupal_common_theme in includes/common.inc
Provides theme registration for themes across .inc files.
ds_extras_ds_fields_info in sites/all/modules/ulmus/ds/modules/ds_extras/ds_extras.ds_fields_info.inc
Implements hook_ds_fields_info().
hook_block_view in modules/block/block.api.php
Return a rendered or renderable view of a block.

... See full list

File

includes/theme.inc, line 2159
The theme system, which controls the output of Drupal.

Code

function theme_feed_icon($variables) {
  $text = t('Subscribe to !feed-title', array('!feed-title' => $variables['title']));
  if ($image = theme('image', array('path' => 'misc/feed.png', 'width' => 16, 'height' => 16, 'alt' => $text))) {
    return l($image, $variables['url'], array('html' => TRUE, 'attributes' => array('class' => array('feed-icon'), 'title' => $text)));
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.