node_block

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.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;
  }
}
Login or register to post comments