You are here

function brightcove_field_instance_settings_form in Brightcove Video Connect 7.7

Same name and namespace in other branches
  1. 7.6 brightcove.module \brightcove_field_instance_settings_form()

Implements hook_field_settings_form().

File

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