function feedback_entity_property_info in Feedback 7.2
Implements hook_entity_property_info().
File
- ./
feedback.module, line 87 - Allows site visitors and users to report issues about this site.
Code
function feedback_entity_property_info() {
$info = array();
$properties =& $info['feedback']['properties'];
$properties['fid'] = array(
'label' => t('Feedback ID'),
'type' => 'integer',
'description' => t('The Feedback ID'),
'schema field' => 'fid',
);
$properties['status'] = array(
'label' => t("Status"),
'type' => 'integer',
'description' => t("0 for new, 1 for processed"),
'schema field' => 'status',
);
$properties['author'] = array(
'label' => t("Author"),
'type' => 'user',
'description' => t("The author of the feedback."),
'setter callback' => 'entity_property_verbatim_set',
'required' => TRUE,
'schema field' => 'uid',
);
$properties['location'] = array(
'label' => t('Location'),
'type' => 'uri',
'description' => t('System path of the originating page.'),
'setter callback' => 'entity_property_verbatim_set',
'required' => TRUE,
'schema field' => 'location',
);
$properties['location_masked'] = array(
'label' => t('Location'),
'type' => 'uri',
'description' => t('Untranslated system path of the originating page.'),
'setter callback' => 'entity_property_verbatim_set',
'required' => TRUE,
'schema field' => 'location_masked',
);
$properties['url'] = array(
'label' => t('URL'),
'type' => 'uri',
'description' => t('Absolute URL of the originating page.'),
'setter callback' => 'entity_property_verbatim_set',
'required' => TRUE,
'schema field' => 'url',
);
$properties['useragent'] = array(
'label' => t('User agent'),
'description' => t('User agent of the feedback message author.'),
'setter callback' => 'entity_property_verbatim_set',
'required' => TRUE,
'schema field' => 'useragent',
);
$properties['message'] = array(
'label' => t('Message'),
'description' => t("The feedback message."),
'setter callback' => 'entity_property_verbatim_set',
'schema field' => 'message',
'required' => TRUE,
);
$properties['timestamp'] = array(
'label' => t("Date created"),
'type' => 'date',
'schema field' => 'timestamp',
'description' => t("The date the feedback was created."),
);
return $info;
}