You are here

function og_vocab_block in OG Vocabulary 5

Same name and namespace in other branches
  1. 6 og_vocab.module \og_vocab_block()

File

./og_vocab.module, line 124
Give each group its own system controlled vocabularies

Code

function og_vocab_block($op = 'list', $delta = 0, $edit = array()) {
  switch ($op) {
    case 'list':
      $blocks[0]['info'] = t('Group categories');
      return $blocks;
    case 'view':
      switch ($delta) {
        case 0:
          $block = og_vocab_block_view();
          break;
      }
      return $block;
  }
}