function hosting_task_entity_property_info_alter in Hosting 7.3
Same name and namespace in other branches
- 7.4 task/hosting_task.module \hosting_task_entity_property_info_alter()
Implements hook_entity_property_info_alter().
File
- task/
hosting_task.module, line 2014 - Web server node type is defined here.
Code
function hosting_task_entity_property_info_alter(&$info) {
$task_properties =& $info['node']['bundles']['task']['properties'];
$task_properties['task_type'] = array(
'label' => t("Task type"),
'description' => t("The type the task node uses."),
'type' => 'text',
'getter callback' => 'entity_property_verbatim_get',
'setter callback' => 'entity_property_verbatim_set',
);
$task_properties['task_status'] = array(
'label' => t('Task status'),
'description' => t('The status of the task. E.g. @TODO, etc.'),
'type' => 'integer',
'options list' => '_hosting_task_error_codes',
'setter callback' => 'entity_property_verbatim_set',
);
$task_properties['rid'] = array(
'label' => t('Relation ID'),
'description' => t('The relation this task belong to: site, platform, etc.'),
'type' => 'integer',
'getter callback' => 'entity_property_verbatim_get',
'setter callback' => 'entity_property_verbatim_set',
);
// TODO: how should we expand these arguments?
/*
$task_properties['task_arguments'] = array(
'label' => t('Task arguments'),
'description' => t('The argument for the given task.'),
// TODO list<text> is insufficient, list<struct> maybe the solution
// see ie commerce/modules/price/commerce_price.module commerce_price_field_data_property_info
'type' => 'list<struct>',
'setter callback' => 'entity_property_verbatim_set',
);
*/
}