function brightcove_field_field_widget_form in Brightcove Video Connect 7.3
Same name and namespace in other branches
- 7.2 brightcove_field/brightcove_field.module \brightcove_field_field_widget_form()
- 7.4 brightcove_field/brightcove_field.module \brightcove_field_field_widget_form()
- 7.5 brightcove_field/brightcove_field.module \brightcove_field_field_widget_form()
Implements hook_field_widget_form().
File
- brightcove_field/
brightcove_field.module, line 835 - Brightcove field module provides a Content Construction Kit module to developers, allowing them to browse videos in their Brightcove Studio and upload them.
Code
function brightcove_field_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) {
if ($instance['widget']['type'] == BRIGHTCOVE_VIDEO_WIDGET) {
module_load_include('inc', 'brightcove_field', 'brightcove_field.video');
_brightcove_field_video_widget_form($form, $form_state, $field, $instance, $langcode, $items, $delta, $element);
}
elseif ($instance['widget']['type'] == BRIGHTCOVE_PLAYLIST_WIDGET) {
module_load_include('inc', 'brightcove_field', 'brightcove_field.playlist');
_brightcove_field_playlist_widget_form($form, $form_state, $field, $instance, $langcode, $items, $delta, $element);
}
return $element;
}