You are here

panopoly_news_rss.inc in Panopoly News 7

File

plugins/content_types/panopoly_news_rss.inc
View source
<?php

/**
 * @file
 * A panel plugin to provide an RSS link to the news
 */
$plugin = array(
  'title' => t('RSS'),
  'description' => t('This is a link to an RSS feed of the latest News'),
  'content_types' => array(
    'panopoly_news_rss',
  ),
  'category' => t('News'),
  'single' => TRUE,
);

/**
 * Implementation of hook_CONTENT_TYPE_content_type_render()
 */
function panopoly_news_panopoly_news_rss_content_type_render($subtype, $conf, $panel_args, $context) {
  $pane = new stdClass();
  $pane->content = theme_feed_icon(array(
    'title' => 'News from ' . variable_get('site_name'),
    'url' => 'news/rss',
  ));
  return $pane;
}

Functions

Namesort descending Description
panopoly_news_panopoly_news_rss_content_type_render Implementation of hook_CONTENT_TYPE_content_type_render()