You are here

function og_vocab_block in OG Vocabulary 6

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

Implementation of hook_block().

//TODO: Make it use Views.

File

./og_vocab.module, line 611
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');
      $blocks[0]['cache'] = BLOCK_NO_CACHE;
      return $blocks;
    case 'view':
      switch ($delta) {
        case 0:
          $block = og_vocab_block_view();
          break;
      }
      return $block;
  }
}