You are here

function video_embed_field_video_style_form in Video Embed Field 7.2

Video embed style form handler.

1 string reference to 'video_embed_field_video_style_form'
video_embed_field_export_ui.inc in plugins/export_ui/video_embed_field_export_ui.inc
Defines the CTools Export UI plugin.

File

./video_embed_field.admin.inc, line 13
Form builder; Form for editing a video style.

Code

function video_embed_field_video_style_form(&$form, &$form_state) {
  if (isset($form_state['item'])) {
    $style = (array) $form_state['item'];
  }
  else {
    $style = array();
  }
  $form_state['video_style'] = $style;

  // Grab the settings off the parser form.
  $values = isset($style['data']) ? $style['data'] : array();
  $parser_form = video_embed_field_get_form($values);

  // General settings for playback - formerly in the configuration section.
  $form['data'] = array(
    '#type' => 'vertical_tabs',
    '#title' => t('Playback settings'),
    '#tree' => TRUE,
  ) + $parser_form;
  return $form;
}