function feedback_entity_info in Feedback 7.2
Implements hook_entity_info().
File
- ./
feedback.module, line 41 - Allows site visitors and users to report issues about this site.
Code
function feedback_entity_info() {
$return = array(
'feedback' => array(
'label' => t('Feedback'),
'controller class' => 'FeedbackController',
'base table' => 'feedback',
'uri callback' => 'feedback_uri',
'fieldable' => TRUE,
'entity keys' => array(
'id' => 'fid',
),
'bundles' => array(
'feedback' => array(
'label' => t('Feedback'),
'admin' => array(
'path' => 'admin/config/user-interface/feedback',
'access arguments' => array(
'administer feedback',
),
),
),
),
'view modes' => array(
'full' => array(
'label' => t('Full feedback entry'),
'custom settings' => FALSE,
),
'teaser' => array(
'label' => t('Teaser'),
'custom settings' => FALSE,
),
'widget' => array(
'label' => t('Widget'),
'custom settings' => FALSE,
),
),
// Disable Metatags (metatag) module's entity form additions.
'metatags' => FALSE,
'deletion callback' => 'feedback_delete',
),
);
return $return;
}