function _filter_brightcove_replace_old in Brightcove Video Connect 7.6
Same name and namespace in other branches
- 7.7 brightcove.module \_filter_brightcove_replace_old()
Callback for preg_replace() in _filter_brightcove().
1 string reference to '_filter_brightcove_replace_old'
- _filter_brightcove in ./
brightcove.module - Process callback for the brightcove filter.
File
- ./
brightcove.module, line 1890 - 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 _filter_brightcove_replace_old($matches) {
$client = brightcove_client_load_or_default();
$player = brightcove_get_default_player($client->bcid);
$variables = [
'player_id' => $player,
'brightcove_id' => $matches[1],
'account_id' => $client->account_id,
];
return theme('brightcove_field_embed', $variables);
}