1.20.x node.module node_syndicate_content($settings)

Returns a themed RSS icon which links to a provided feed.

Parameters

array $settings: Block configuration settings.

File

modules/node/node.module, line 2182
The core module that allows content to be submitted to the site.

Code

function node_syndicate_content($settings) {
  if (isset($settings['syndicate_settings']) && $settings['syndicate_settings'] == 'page_content') {
    return backdrop_get_feeds();
  }
  // Default to promoted content to support legacy Syndicate blocks.
  return array(
    '#theme' => 'feed_icon',
    '#url' => 'rss.xml',
    '#title' => t('Subscribe to promoted content'),
  );
}