You are here

function og_vocab_og_ui_get_group_admin in OG Vocabulary 7

Implements hook_og_ui_get_group_admin()

File

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

Code

function og_vocab_og_ui_get_group_admin($group_type, $gid) {
  $items = array();
  if (og_user_access($group_type, $gid, 'administer taxonomy')) {
    $items['taxonomy'] = array(
      'title' => t('Taxonomy'),
      'description' => t('Show vocabularies related to this group.'),
      'href' => 'admin/taxonomy',
    );
  }
  return $items;
}