home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (page_feed_icons.inc)

This example Drupal source code file (page_feed_icons.inc) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

array, block, conf, ctools_page_feed_icons_content_type_render, description, function, last, php, plugin, render, return, title, true

The page_feed_icons.inc Drupal example source code

// $Id: page_feed_icons.inc,v 2010/02/02 21:49:21 merlinofchaos Exp $

 * @file
 * Plugin to handle the 'page_feed_icons' content type which allows the
 * feed_icons statement of the site to be embedded into a panel.

 * Plugins are described by creating a $plugin array which will be used
 * by the system that includes this file.
$plugin = array(
  'title' => t('Feed icons'),
  'single' => TRUE,
  'icon' => 'icon_page.png',
  'description' => t('Add the site feed_icons statement as content.'),
  'category' => t('Page elements'),
  'render last' => TRUE,

 * Output function for the 'page_feed_icons' content type.
 * Outputs the feed_icons statement for the site.
function ctools_page_feed_icons_content_type_render($subtype, $conf, $panel_args) {
  $block = new stdClass();
  $block->content = drupal_get_feeds();

  return $block;

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal page_feed_icons.inc source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.