You are here

function brightcove_field_field_instance_settings_form in Brightcove Video Connect 7.3

Same name and namespace in other branches
  1. 7.2 brightcove_field/brightcove_field.module \brightcove_field_field_instance_settings_form()
  2. 7.4 brightcove_field/brightcove_field.module \brightcove_field_field_instance_settings_form()
  3. 7.5 brightcove_field/brightcove_field.module \brightcove_field_field_instance_settings_form()

Implements hook_field_settings_form().

File

brightcove_field/brightcove_field.module, line 398
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_instance_settings_form($field, $instance) {
  $form = array();
  switch ($instance['widget']['type']) {
    case BRIGHTCOVE_VIDEO_WIDGET:
      module_load_include('inc', 'brightcove_field', 'brightcove_field.video');
      _brightcove_field_video_instance_settings_form($form, $field, $instance);
      break;
    case BRIGHTCOVE_PLAYLIST_WIDGET:
      module_load_include('inc', 'brightcove_field', 'brightcove_field.playlist');
      _brightcove_field_playlist_instance_settings_form($form, $field, $instance);
      break;
  }
  return $form;
}