You are here

function brightcove_autoload in Brightcove Video Connect 6

Same name and namespace in other branches
  1. 6.2 brightcove.module \brightcove_autoload()

Autoload the BCMAPI class when needed.

1 string reference to 'brightcove_autoload'
brightcove_init in ./brightcove.module

File

./brightcove.module, line 61
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 brightcove_autoload($class_name) {
  if (in_array($class_name, array(
    'BCMAPI',
    'BCMAPIException',
  ))) {
    include_once brightcove_mapi_path() . '/bc-mapi.php';
  }
}