You are here

function brightcove_field_playlist_pager in Brightcove Video Connect 7.7

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

AJAX callback to update playlist table.

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

File

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

Code

function brightcove_field_playlist_pager($form, &$form_state) {
  $parents = $form_state['triggering_element']['#parents'];

  // Pop some parents as we have to update the whole field.
  array_pop($parents);
  array_pop($parents);
  array_pop($parents);
  $return = drupal_array_get_nested_value($form, $parents);
  unset($return['_weight']);
  return $return;
}