You are here

function brightcove_field_playlist_client_ajax_callback in Brightcove Video Connect 7.7

Same name and namespace in other branches
  1. 7.6 brightcove_field.playlist.inc \brightcove_field_playlist_client_ajax_callback()

AJAX callback for playlist select update on client selection.

1 string reference to 'brightcove_field_playlist_client_ajax_callback'
_brightcove_field_playlist_widget_form in ./brightcove_field.playlist.inc
Helper function to return the playlist widget form.

File

./brightcove_field.playlist.inc, line 288
Holds all of the video field related methods.

Code

function brightcove_field_playlist_client_ajax_callback($form, $form_state) {
  $parents = $form_state['triggering_element']['#parents'];
  array_pop($parents);
  $return = drupal_array_get_nested_value($form, $parents);
  unset($return['_weight']);
  return $return;
}