| 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 |
| 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() { |