You are here

function _filter_brightcove_replace in Brightcove Video Connect 7.3

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

Callback for preg_replace() in _filter_brightcove().

@TODO: make this function a closure.

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

File

brightcove_field/brightcove_field.module, line 1642
Brightcove field module provides a Content Construction Kit module to developers, allowing them to browse videos in their Brightcove Studio and upload them.

Code

function _filter_brightcove_replace($videoid) {
  $filter =& drupal_static('_filter_brightcove');
  return theme('brightcove_field_embed', array(
    'player' => $filter && $filter->settings['player'] ? $filter->settings['player'] : variable_get('brightcove_player_default'),
    'video_id' => $videoid[1],
  ));
}