You are here

function brightcove_update_7002 in Brightcove Video Connect 7.3

Same name and namespace in other branches
  1. 7.2 brightcove.install \brightcove_update_7002()
  2. 7.4 brightcove.install \brightcove_update_7002()
  3. 7.5 brightcove.install \brightcove_update_7002()

Migrates old player id and key to the table.

File

./brightcove.install, line 172
Installation file for Brightcove module.

Code

function brightcove_update_7002() {
  $t = get_t();
  $player_id = variable_get('brightcove_player');
  $player_key = variable_get('brightcove_player_key');
  brightcove_player_save((object) array(
    'name' => $t('Default'),
    'player_id' => $player_id,
    'player_key' => $player_key,
  ));
  variable_del('brightcove_player');
  variable_del('brightcove_player_key');
}