You are here

function brightcove_field_browser_form_submit in Brightcove Video Connect 7.2

Submit callback for brightcove_field_browser_form().

Just take the value and pass it to modalframe.

File

brightcove_field/brightcove_field.module, line 1083
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_browser_form_submit($form, &$form_state) {

  // The value is "title [id:ID]" - recognised by validating element.
  $return['selected'] = check_plain($form_state['values']['title']) . ' [id:' . check_plain($form_state['values']['id']) . ']';
}