function views_rss_core_preprocess_channel_atom_link in Views RSS 8.3
Same name and namespace in other branches
- 8.2 modules/views_rss_core/views_rss_core.inc \views_rss_core_preprocess_channel_atom_link()
- 6.2 modules/views_rss_core/views_rss_core.inc \views_rss_core_preprocess_channel_atom_link()
- 7.2 modules/views_rss_core/views_rss_core.inc \views_rss_core_preprocess_channel_atom_link()
Preprocess function for channel <atom:link> element.
1 string reference to 'views_rss_core_preprocess_channel_atom_link'
- views_rss_core_views_rss_channel_elements in modules/
views_rss_core/ views_rss_core.module - Implements hook_views_rss_channel_elements().
File
- modules/
views_rss_core/ views_rss_core.inc, line 53 - Preprocess functions for Views RSS: Core Elements module.
Code
function views_rss_core_preprocess_channel_atom_link(&$variables) {
$url_options = array(
'absolute' => TRUE,
);
$input = $variables['view']
->getExposedInput();
if ($input) {
$url_options['query'] = $input;
}
$variables['elements'][0]['attributes'] = array(
'rel' => 'self',
'href' => _url($variables['view']
->getUrl(), $url_options),
);
}