function og_vocab_entity_info in OG Vocabulary 7
Implements hook_entity_info().
File
- ./
og_vocab.module, line 186 - Give each group its own system controlled vocabularies.
Code
function og_vocab_entity_info() {
$items['og_vocab'] = array(
'label' => t('OG vocab'),
'label callback' => 'og_vocab_label',
'uri callback' => 'og_vocab_uri',
'controller class' => 'EntityAPIController',
'entity class' => 'OgVocab',
'base table' => 'og_vocab',
'fieldable' => TRUE,
'entity keys' => array(
'id' => 'id',
),
'bundles' => array(
'og_vocab' => array(
'label' => t('OG vocab'),
),
),
'module' => 'og_vocab',
);
return $items;
}