You are here

function ajax_browse_dialog_close_callback in Brightcove Video Connect 7.5

Same name and namespace in other branches
  1. 7.7 brightcove.module \ajax_browse_dialog_close_callback()
  2. 7.2 brightcove_field/brightcove_field.module \ajax_browse_dialog_close_callback()
  3. 7.3 brightcove_field/brightcove_field.module \ajax_browse_dialog_close_callback()
  4. 7.4 brightcove_field/brightcove_field.module \ajax_browse_dialog_close_callback()
  5. 7.6 brightcove.module \ajax_browse_dialog_close_callback()
1 string reference to 'ajax_browse_dialog_close_callback'
brightcove_field_browser_form in brightcove_field/brightcove_field.module
Browse form. Will return a form for one video item.

File

brightcove_field/brightcove_field.module, line 153
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 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 = array();
  $commands[] = ajax_command_close_dialog($selector, $data, NULL, $dialog_type);
  return array(
    '#type' => 'ajax',
    '#commands' => $commands,
  );
}