function content_type_groups_entity_info in Content type groups 7.2
Implements hook_entity_info().
File
- ./
content_type_groups.module, line 91 - Module file for the Content type groups module.
Code
function content_type_groups_entity_info() {
return array(
// Content Type Group entity definition
'content_type_group' => array(
'module' => 'content_type_groups',
'label' => t('Content type group'),
'base table' => 'content_type_groups_groups',
'entity keys' => array(
'id' => 'type',
),
'entity class' => 'ContentTypeGroup',
'controller class' => 'ContentTypeGroupController',
'load hook' => 'content_type_groups_group_load',
'label callback' => 'entity_class_label',
'uri callback' => 'entity_class_uri',
'admin ui' => array(
'path' => 'admin/structure/types/groups',
'file' => CONTENT_TYPE_GROUPS_ADMIN_PATH,
'controller class' => 'ContentTypeGroupUIController',
),
),
);
}