You are here

function brightcove_playlist_delete in Brightcove Video Connect 7.4

Same name and namespace in other branches
  1. 7.3 brightcove.module \brightcove_playlist_delete()
  2. 7.5 brightcove.module \brightcove_playlist_delete()

Delete a playlists from brightcove wrapper function.

Parameters

array $playlist_id:

Return value

boolean

1 call to brightcove_playlist_delete()
brightcove_playlist_delete_form_submit in ./brightcove.module
Playlist delete confirm form submit handler.

File

./brightcove.module, line 229
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 brightcove_playlist_delete($playlist_id) {
  $bc = brightcove_initialize();
  try {
    $bc
      ->delete('playlist', $playlist_id);
  } catch (Exception $exception) {
    watchdog_exception('brightcove', $exception);
  }
}