function merci_hours_entity_info in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
Implements hook_entity_info().
File
- merci_hours/
merci_hours.module, line 90
Code
function merci_hours_entity_info() {
$info = array();
$info['merci_hours'] = array(
'module' => 'merci_hours',
'base table' => 'merci_hours',
'entity keys' => array(
'id' => 'id',
'name' => 'name',
'label' => 'label',
),
'fieldable' => TRUE,
'bundles' => array(
'merci_hours' => array(
'label' => t('Merci hours'),
// Provide a default administration path for Field UI, but not if 'admin'
// has been explicitly set to NULL.
'admin' => array(
'path' => 'admin/merci/config/merci-hours',
),
),
),
'label' => t('Merci hours'),
'plural label' => t('Merci hours'),
'entity class' => 'MerciHours',
'controller class' => 'EntityAPIControllerExportable',
'exportable' => TRUE,
'admin ui' => array(
'path' => 'admin/merci/config/merci-hours',
'file' => 'includes/entity.ui.inc',
),
'access callback' => 'merci_hours_access',
);
return $info;
}