function name_field_item_property_info in Name Field 7
Defines info for the properties of the name-field item data structure.
1 call to name_field_item_property_info()
- name_field_property_info_callback in ./
name.module - Additional callback to adapt the property info of name fields.
File
- ./
name.module, line 1834 - Defines an API for displaying and inputing names.
Code
function name_field_item_property_info() {
$properties['title'] = array(
'type' => 'text',
'label' => t('The title of the name.'),
'setter callback' => 'entity_property_verbatim_set',
);
$properties['given'] = array(
'type' => 'text',
'label' => t('The given name.'),
'setter callback' => 'entity_property_verbatim_set',
);
$properties['middle'] = array(
'type' => 'text',
'label' => t('The middle of the name.'),
'setter callback' => 'entity_property_verbatim_set',
);
$properties['family'] = array(
'type' => 'text',
'label' => t('The family of the name.'),
'setter callback' => 'entity_property_verbatim_set',
);
$properties['generational'] = array(
'type' => 'text',
'label' => t('The generational of the name.'),
'setter callback' => 'entity_property_verbatim_set',
);
$properties['credentials'] = array(
'type' => 'text',
'label' => t('The credentials of the name.'),
'setter callback' => 'entity_property_verbatim_set',
);
return $properties;
}