function brightcove_field_widget_form in Brightcove Video Connect 7.6
Same name and namespace in other branches
- 7.7 brightcove.module \brightcove_field_widget_form()
Implements hook_field_widget_form().
File
- ./
brightcove.module, line 870 - Brightcove module is an integration layer between any modules using Brightcove API. It makes all necessary checks for the API and makes settings available to the user.
Code
function brightcove_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) {
if ($instance['widget']['type'] == BRIGHTCOVE_VIDEO_WIDGET) {
module_load_include('inc', 'brightcove', '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', 'brightcove_field.playlist');
_brightcove_field_playlist_widget_form($form, $form_state, $field, $instance, $langcode, $items, $delta, $element);
}
return $element;
}