function faqfield_item_property_info in FAQ Field 7
Defines info for the properties of the faqfield item data structure.
1 call to faqfield_item_property_info()
- faqfield_property_info_callback in ./
faqfield.module - Additional callback to adapt the property info of faqfields.
File
- ./
faqfield.module, line 89 - FAQ Field Provides a field for frequently asked questions.
Code
function faqfield_item_property_info() {
$properties['question'] = array(
'type' => 'text',
'label' => t('The question.'),
'getter callback' => 'entity_property_verbatim_get',
'setter callback' => 'entity_property_verbatim_set',
);
$properties['answer'] = array(
'type' => 'text',
'label' => t('The answer.'),
'getter callback' => 'entity_property_verbatim_get',
'setter callback' => 'entity_property_verbatim_set',
);
return $properties;
}