function podcast_preprocess_views_view_row_rss in Podcast (using Views) 8
Implements hook_preprocess_HOOK().
File
- ./
podcast.module, line 87 - Primary module hooks for the podcast module.
Code
function podcast_preprocess_views_view_row_rss(&$variables) {
$view = $variables['view'];
/** @var \Drupal\views\Plugin\views\style\StylePluginBase $style */
$style = $view->style_plugin;
if (!$style instanceof Rss) {
return;
}
unset($variables['link']);
unset($variables['description']);
}