/[drupal]/contributions/modules/syndication/syndication.module
ViewVC logotype

Diff of /contributions/modules/syndication/syndication.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.58.2.13, Mon Jul 6 08:11:34 2009 UTC revision 1.58.2.14, Fri Jul 17 20:02:05 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: syndication.module,v 1.58.2.12 2009/05/19 01:08:58 aaron1234nz Exp $  // $Id: syndication.module,v 1.58.2.13 2009/07/06 08:11:34 aaron1234nz Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 649  generated by Drupal. This helps users fi Line 649  generated by Drupal. This helps users fi
649  }  }
650    
651  /**  /**
  * Allows modules to add RSS feeds to the Syndication page  
  *  
  * Any module can export boxes to the syndication page. You do so  
  * by creating a <i>modulename</i>_syndication function which returns  
  * an associative array of boxes, much like the block module. Each box  
  * in the array requires <i>subject</i> and <i>content</i> fields. Example:  
  * function mymodule_syndication() {  
  *   $box[0]["subject"] = "Existentialism";  
  *   $box[0]["content"] = "So many feeds in this world";  
  *  
  *   $box[1]["subject"] = "Got any question?";  
  *   $box[1]["content"] = "Who, Where, Why, When";  
  *  return  $box;  
  * }  
  */  
 function hook_syndication() {  
   // Creating the first box  
   $box[0]["subject"] = "Existentialism";  
   $box[0]["content"] = "So many feeds in this world";  
   
   // Lets create a one box more  
   $box[1]["subject"] = "Got any question?";  
   $box[1]["content"] = "Who, Where, Why, When";  
   return  $box;  
 }  
   
 /**  
652   * Implementation of hook_theme().   * Implementation of hook_theme().
653   */   */
654  function syndication_theme() {  function syndication_theme() {

Legend:
Removed from v.1.58.2.13  
changed lines
  Added in v.1.58.2.14

  ViewVC Help
Powered by ViewVC 1.1.2