function brightcove_cck_browser_form_submit in Brightcove Video Connect 6
Same name and namespace in other branches
- 6.2 brightcove_cck/brightcove_cck.module \brightcove_cck_browser_form_submit()
Submit callback for brightcove_cck_browser_form().
Just take the value and pass it to modalframe.
1 string reference to 'brightcove_cck_browser_form_submit'
- brightcove_cck_browser_form in brightcove_cck/
brightcove_cck.module - Browse form. Will return a form for one video item.
File
- brightcove_cck/
brightcove_cck.module, line 727 - Brightcove CCK module provides a Content Construction Kit module to developers, allowing them to browse videos in their Brightcove Studio and upload them.
Code
function brightcove_cck_browser_form_submit($form, &$form_state) {
// The value is "title [id:ID]" - recognised by validating element.
$return['selected'] = $form_state['values']['title'] . ' [id:' . $form_state['values']['id'] . ']';
modalframe_close_dialog($return);
}