function node_block in Drupal 6
Same name and namespace in other branches
- 4 modules/node.module \node_block()
- 5 modules/node/node.module \node_block()
Implementation of hook_block().
File
- modules/
node/ node.module, line 1646 - The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.
Code
function node_block($op = 'list', $delta = 0) {
if ($op == 'list') {
$blocks[0]['info'] = t('Syndicate');
// Not worth caching.
$blocks[0]['cache'] = BLOCK_NO_CACHE;
return $blocks;
}
else {
if ($op == 'view') {
$block['subject'] = t('Syndicate');
$block['content'] = theme('feed_icon', url('rss.xml'), t('Syndicate'));
return $block;
}
}
}