| 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 |
|
|