function ajax_browse_dialog_close_callback in Brightcove Video Connect 7.6
Same name and namespace in other branches
- 7.7 brightcove.module \ajax_browse_dialog_close_callback()
- 7.2 brightcove_field/brightcove_field.module \ajax_browse_dialog_close_callback()
- 7.3 brightcove_field/brightcove_field.module \ajax_browse_dialog_close_callback()
- 7.4 brightcove_field/brightcove_field.module \ajax_browse_dialog_close_callback()
- 7.5 brightcove_field/brightcove_field.module \ajax_browse_dialog_close_callback()
Page callback for closing a dialog.
1 string reference to 'ajax_browse_dialog_close_callback'
- brightcove_field_browser_form in ./
brightcove.module - Browse form. Will return a form for one video item.
File
- ./
brightcove.module, line 1008 - 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 ajax_browse_dialog_close_callback($form, $form_state) {
$selector = '#browse-dialog';
$data = check_plain($form_state['values']['title']) . ' [id:' . check_plain($form_state['values']['id']) . ']';
$dialog_type = 'browse';
$commands = [];
$commands[] = ajax_command_close_dialog($selector, $data, NULL, $dialog_type);
return [
'#type' => 'ajax',
'#commands' => $commands,
];
}