node_block

Definition

node_block($op = 'list', $delta = 0)
node/node.module, line 1880

Description

Implementation of hook_block().

Code

<?php
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;
  }
}
?>