function video_metadata_field_property_callback in Video 7.2
Property callback for the Entity Metadata framework.
1 string reference to 'video_metadata_field_property_callback'
- video_field_info in ./
video.field.inc - Implements hook_field_info().
File
- ./
video.field.inc, line 46 - Implement a video field, based on the file module's file field.
Code
function video_metadata_field_property_callback(&$info, $entity_type, $field, $instance, $field_type) {
$name = $field['field_name'];
$property =& $info[$entity_type]['bundles'][$instance['bundle']]['properties'][$name];
$property['property info']['thumbnail'] = array(
'type' => 'file',
'label' => t('The thumbnail file.'),
'getter callback' => 'video_entity_metadata_thumbnail_get',
);
$property['property info']['playable_files'] = array(
'type' => 'list<file>',
'label' => t('The thumbnail file.'),
'getter callback' => 'video_entity_metadata_playable_files_get',
);
}