function link_field_item_property_info in Link 7
Defines info for the properties of the link-field item data structure.
1 call to link_field_item_property_info()
- link_field_property_info_callback in ./
link.module - Additional callback to adapt the property info of link fields.
File
- ./
link.module, line 1987 - Defines simple link field types.
Code
function link_field_item_property_info() {
$properties['title'] = array(
'type' => 'text',
'label' => t('The title of the link.'),
'setter callback' => 'entity_property_verbatim_set',
);
$properties['url'] = array(
'type' => 'text',
'label' => t('The URL of the link.'),
'setter callback' => 'entity_property_verbatim_set',
'getter callback' => 'link_url_property_get',
);
$properties['attributes'] = array(
'type' => 'struct',
'label' => t('The attributes of the link.'),
'setter callback' => 'entity_property_verbatim_set',
'getter callback' => 'link_attribute_property_get',
);
$properties['display_url'] = array(
'type' => 'uri',
'label' => t('The full URL of the link.'),
'setter callback' => 'entity_property_verbatim_set',
);
return $properties;
}