/[drupal]/contributions/modules/syndication/README.txt
ViewVC logotype

Diff of /contributions/modules/syndication/README.txt

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

revision 1.5.4.1, Sun Jan 18 06:14:53 2009 UTC revision 1.5.4.2, Fri Jul 17 20:02:05 2009 UTC
# Line 28  to disable the plain Syndication block o Line 28  to disable the plain Syndication block o
28    
29  To see your new Syndication page, follow the 'more' link which appears in the Block, or browse to q=syndication.  To see your new Syndication page, follow the 'more' link which appears in the Block, or browse to q=syndication.
30    
31    API
32    -----
33    This module provides a hook which allows other modules to show feeds on the Syndiaction page.
34    To implement this module create a function called mymodule_syndication() in the following format.
35    
36    If the module provides many feeds you may with to group them. To do this simply provide more than one item in the $feed array.
37    
38    Once you have done this, you will need to visit the admin/content/syndication page and enable the new feeds,
39    
40    function hook_syndication() {
41      $feed[0]["subject"]  = "Feeds from my new module";
42      $feed[0]["content"]  = l('Feed one', 'mymodule/1/feed'). '<br />';
43      $feed[0]["content"] .= l('Feed two, 'mymodule/2/feed');
44    
45      return  $box;
46    }
47    
48  Author  Author
49  ------  ------
50    

Legend:
Removed from v.1.5.4.1  
changed lines
  Added in v.1.5.4.2

  ViewVC Help
Powered by ViewVC 1.1.2