function node_block in Drupal 4
Same name and namespace in other branches
- 5 modules/node/node.module \node_block()
- 6 modules/node/node.module \node_block()
Implementation of hook_block().
File
- modules/
node.module, line 1436 - The core that allows content to be submitted to the site.
Code
function node_block($op = 'list', $delta = 0) {
if ($op == 'list') {
$blocks[0]['info'] = t('Syndicate');
return $blocks;
}
else {
if ($op == 'view') {
$block['subject'] = t('Syndicate');
$block['content'] = theme('feed_icon', url('rss.xml'));
return $block;
}
}
}