| 5 node.module | node_block($op = 'list', $delta = 0) |
| 6 node.module | node_block($op = 'list', $delta = 0) |
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;
}
}
Login or register to post comments