function views_rss_core_preprocess_channel_link in Views RSS 8.2
Same name and namespace in other branches
- 8.3 modules/views_rss_core/views_rss_core.inc \views_rss_core_preprocess_channel_link()
- 6.2 modules/views_rss_core/views_rss_core.inc \views_rss_core_preprocess_channel_link()
- 7.2 modules/views_rss_core/views_rss_core.inc \views_rss_core_preprocess_channel_link()
Preprocess function for channel <link> element.
1 string reference to 'views_rss_core_preprocess_channel_link'
- views_rss_core_views_rss_channel_elements in modules/
views_rss_core/ views_rss_core.module - Implements hook_views_rss_item_elements().
File
- modules/
views_rss_core/ views_rss_core.inc, line 45 - Preprocess functions for Views RSS: Core Elements module.
Code
function views_rss_core_preprocess_channel_link(&$variables) {
// The link element identifies the URL of the web site associated with
// the feed (and not the feed's URL, as Drupal makes you think).
// See http://www.rssboard.org/rss-profile#element-channel-link
$variables['elements'][0]['value'] = $GLOBALS['base_url'] . '/';
}