You are here

function brightcove_exit in Brightcove Video Connect 7.7

Same name and namespace in other branches
  1. 7.6 brightcove.module \brightcove_exit()

Implements hook_exit().

File

./brightcove.module, line 3328
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_exit($destination = NULL) {

  // Redirect to the given path.
  if (isset($_SESSION['player_delete_redirect'])) {
    $goto = $_SESSION['player_delete_redirect'];
    unset($_SESSION['player_delete_redirect']);
    drupal_goto($goto);
  }
}