function _filter_brightcove in Brightcove Video Connect 7.5
Same name and namespace in other branches
- 7.7 brightcove.module \_filter_brightcove()
- 7.3 brightcove_field/brightcove_field.module \_filter_brightcove()
- 7.4 brightcove_field/brightcove_field.module \_filter_brightcove()
- 7.6 brightcove.module \_filter_brightcove()
Process callback for the brightcove filter.
@TODO: refactor this function to use a closure when we can use PHP 5.3 (D8?)
2 string references to '_filter_brightcove'
- brightcove_field_filter_info in brightcove_field/
brightcove_field.module - Implements hook_filter_info().
- _filter_brightcove_replace in brightcove_field/
brightcove_field.module - Callback for preg_replace() in _filter_brightcove().
File
- brightcove_field/
brightcove_field.module, line 1663 - 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($text, $filter) {
$current_filter =& drupal_static(__FUNCTION__);
$current_filter = $filter;
return preg_replace_callback('#\\[brightcove:([\\d]+)\\]#', '_filter_brightcove_replace', $text);
}