function casetracker_entity_property_info_alter in Case Tracker 7.2
Implements hook_entity_property_info_alter().
File
- ./
casetracker.module, line 152
Code
function casetracker_entity_property_info_alter(&$info) {
$case_properties =& $info['casetracker_case']['properties'];
$case_properties['created'] = array(
'type' => 'date',
'label' => t("Creation date"),
'description' => t("The date the case was posted."),
'setter callback' => 'entity_property_verbatim_set',
'setter permission' => 'administer casetracker_case entities',
'schema field' => 'created',
);
$case_properties['changed'] = array(
'type' => 'date',
'label' => t("Last update"),
'description' => t("The date the case was most recently updated."),
'schema field' => 'changed',
);
$case_properties['title'] = array(
'label' => t('Title'),
'description' => t('Title of the case.'),
'type' => 'text',
'setter callback' => 'entity_property_verbatim_set',
'setter permission' => 'administer casetracker_case entities',
'required' => TRUE,
'schema field' => 'title',
);
$case_properties['uid'] = array(
'type' => 'user',
'label' => t("Author"),
'description' => t("The author of the case."),
'setter callback' => 'entity_property_verbatim_set',
'setter permission' => 'administer casetracker_case entities',
'required' => TRUE,
'schema field' => 'uid',
);
$project_properties =& $info['casetracker_project']['properties'];
$project_properties['created'] = array(
'type' => 'date',
'label' => t("Creation date"),
'description' => t("The date the project was posted."),
'setter callback' => 'entity_property_verbatim_set',
'setter permission' => 'administer casetracker_project entities',
'schema field' => 'created',
);
$project_properties['changed'] = array(
'type' => 'date',
'label' => t("Last update"),
'description' => t("The date the project was most recently updated."),
'schema field' => 'changed',
);
$project_properties['title'] = array(
'label' => t('Title'),
'description' => t('Title of the project.'),
'type' => 'text',
'setter callback' => 'entity_property_verbatim_set',
'setter permission' => 'administer casetracker_project entities',
'required' => TRUE,
'schema field' => 'title',
);
$project_properties['uid'] = array(
'type' => 'user',
'label' => t("Author"),
'description' => t("The author of the project."),
'setter callback' => 'entity_property_verbatim_set',
'setter permission' => 'administer casetracker_project entities',
'required' => TRUE,
'schema field' => 'uid',
);
}