1 node.module | node_syndicate_content(array $settings) |
Returns a themed RSS icon which links to a provided feed.
Parameters
array $settings: Block configuration settings.
File
- core/
modules/ node/ node.module, line 2170 - The core module that allows content to be submitted to the site.
Code
function node_syndicate_content(array $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'),
);
}