You are here

function brightcove_player_save in Brightcove Video Connect 7.2

Same name and namespace in other branches
  1. 7.3 brightcove.module \brightcove_player_save()
  2. 7.4 brightcove.module \brightcove_player_save()
  3. 7.5 brightcove.module \brightcove_player_save()
2 calls to brightcove_player_save()
brightcove_player_editor_form_submit in ./brightcove.admin.inc
brightcove_update_7002 in ./brightcove.install
Migrates old player id and key to the table.

File

./brightcove.module, line 511
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_player_save($player) {
  return db_merge('brightcove_player')
    ->key(array(
    'name' => $player->name,
  ))
    ->fields(array(
    'player_id' => $player->player_id,
    'player_key' => $player->player_key,
  ))
    ->execute();
}