function youtube_field_data_property_info in YouTube Field 7
Defines info for the properties of YouTube field data.
Return value
array An array of property information for YouTube fields, keyed by property.
1 call to youtube_field_data_property_info()
- youtube_property_info_callback in ./
youtube.module - Callback to alter the property info of youtube fields.
File
- ./
youtube.module, line 203
Code
function youtube_field_data_property_info() {
return array(
'input' => array(
'label' => t('YouTube URL'),
'description' => t('The absolute URL for the YouTube video.'),
'type' => 'text',
'getter callback' => 'entity_property_verbatim_get',
'setter callback' => 'entity_property_verbatim_set',
),
'video_id' => array(
'label' => t('YouTube Video ID'),
'description' => t('The ID assigned to the YouTube video'),
'type' => 'text',
'getter callback' => 'entity_property_verbatim_get',
'setter callback' => 'entity_property_verbatim_set',
),
);
}