function support_entity_info in Support Ticketing System 7
Implements hook_entity_info().
File
- ./
support.module, line 20 - support.module
Code
function support_entity_info() {
return array(
'support_client' => array(
'label' => t('Support Client'),
'entity class' => 'Entity',
'controller class' => 'EntityAPIController',
'base table' => 'support_client',
'entity keys' => array(
'id' => 'clid',
),
'label callback' => 'support_client_label_callback',
'uri callback' => '',
// No view screen, no uri.
'access callback' => 'support_client_access_callback',
'module' => 'support',
'fieldable' => TRUE,
'bundles' => array(
'support_client' => array(
'label' => t('Support Client'),
'admin' => array(
'path' => 'admin/support/clients',
'access arguments' => array(
'administer support',
),
),
),
),
'admin ui' => array(
'path' => 'admin/support/clients',
'file' => 'support.admin.inc',
'controller class' => 'SupportClientUIController',
),
),
);
}