function i18n_translation_entity_info in Internationalization 7
Implements hook_entity_info().
File
- i18n_translation/
i18n_translation.module, line 37 - Internationalization (i18n) module - Entity translations
Code
function i18n_translation_entity_info() {
$bundles = array();
foreach (i18n_translation_set_info() as $type => $info) {
$bundles[$type] = array(
'label' => $info['title'],
);
}
$return = array(
'i18n_translation' => array(
'label' => t('Translation set'),
'controller class' => 'I18nTranslationSetController',
'base table' => 'i18n_translation_set',
//'uri callback' => 'taxonomy_term_uri',
'fieldable' => FALSE,
'entity keys' => array(
'id' => 'tsid',
'bundle' => 'type',
'label' => 'title',
),
'bundle keys' => array(
'bundle' => 'type',
),
'bundles' => $bundles,
),
);
return $return;
}