| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: feed_block.module,v 1.1.2.2 2009/04/30 18:06:48 ivanjaros Exp $ |
| 3 |
|
|
| 4 |
/* |
/* |
| 5 |
* Generates content of the block. |
* Generates content of the block. |
| 54 |
/* |
/* |
| 55 |
* Generates module's administration page. |
* Generates module's administration page. |
| 56 |
*/ |
*/ |
| 57 |
function feedblock_settings() { |
function feed_block_settings() { |
| 58 |
$q = db_query('SELECT cid, title FROM {aggregator_category}'); |
$q = db_query('SELECT cid, title FROM {aggregator_category}'); |
| 59 |
|
|
| 60 |
while ($fetch = db_fetch_object($q)) { |
while ($fetch = db_fetch_object($q)) { |
| 101 |
'title' => 'Feed Block', |
'title' => 'Feed Block', |
| 102 |
'description' => 'Administer Feed Block.', |
'description' => 'Administer Feed Block.', |
| 103 |
'page callback' => 'drupal_get_form', |
'page callback' => 'drupal_get_form', |
| 104 |
'page arguments' => array('feedblock_settings'), |
'page arguments' => array('feed_block_settings'), |
| 105 |
'access arguments' => array('administer site configuration'), |
'access arguments' => array('administer site configuration'), |
| 106 |
'type' => MENU_NORMAL_ITEM, |
'type' => MENU_NORMAL_ITEM, |
| 107 |
); |
); |