You are here

function node_block in Drupal 5

Same name and namespace in other branches
  1. 4 modules/node.module \node_block()
  2. 6 modules/node/node.module \node_block()

Implementation of hook_block().

File

modules/node/node.module, line 1880
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');
    return $blocks;
  }
  else {
    if ($op == 'view') {
      $block['subject'] = t('Syndicate');
      $block['content'] = theme('feed_icon', url('rss.xml'));
      return $block;
    }
  }
}