You are here

function _filter_brightcove_replace in Brightcove Video Connect 7.6

Same name and namespace in other branches
  1. 7.7 brightcove.module \_filter_brightcove_replace()
  2. 7.3 brightcove_field/brightcove_field.module \_filter_brightcove_replace()
  3. 7.4 brightcove_field/brightcove_field.module \_filter_brightcove_replace()
  4. 7.5 brightcove_field/brightcove_field.module \_filter_brightcove_replace()

Callback for preg_replace() in _filter_brightcove().

1 string reference to '_filter_brightcove_replace'
_filter_brightcove in ./brightcove.module
Process callback for the brightcove filter.

File

./brightcove.module, line 1906
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($matches) {
  $variables = [
    'player_id' => $matches[3],
    'brightcove_id' => $matches[2],
    'account_id' => $matches[1],
  ];
  return theme('brightcove_field_embed', $variables);
}