You are here

function _filter_brightcove in Brightcove Video Connect 7.6

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

Process callback for the brightcove filter.

1 string reference to '_filter_brightcove'
brightcove_filter_info in ./brightcove.module
Implements hook_filter_info().

File

./brightcove.module, line 1876
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($text, $filter) {
  $current_filter =& drupal_static(__FUNCTION__);
  $current_filter = $filter;

  // new syntax
  $text = preg_replace_callback('/\\[brightcove:([\\d]+):([\\d]+):([a-z0-9]+)\\]/i', '_filter_brightcove_replace', $text);

  // old syntax
  $text = preg_replace_callback('/\\[brightcove:([\\d]+)\\]/i', '_filter_brightcove_replace_old', $text);
  return $text;
}