function legal_entity_info in Legal 8
Same name and namespace in other branches
- 2.0.x legal.module \legal_entity_info()
Implements hook_entity_info().
File
- ./
legal.module, line 524 - Module file for Legal.
Code
function legal_entity_info() {
$info = [];
$info['legal_conditions'] = [
'label' => t('Legal Terms & Conditions'),
'base table' => 'legal_conditions',
'entity keys' => [
'id' => 'tc_id',
'label' => 'name',
],
'module' => 'legal',
];
return $info;
}