You are here

function brightcove_load_lib in Brightcove Video Connect 7.7

Same name and namespace in other branches
  1. 7.6 brightcove.module \brightcove_load_lib()

Load brightcove php wrapper library.

Parameters

bool $fail_silently:

18 calls to brightcove_load_lib()
BrightcovePlaylistEntityController::create in ./brightcove.playlist.inc
Overwrites EntityAPIController::create().
BrightcoveVideoEntityController::create in ./brightcove.video.inc
Implements EntityAPIControllerInterface.
brightcove_client_form_validate in ./brightcove.client.inc
Validation callback for brightcove_client_form().
brightcove_get_playlists in ./brightcove.playlist.inc
Get the playlists from Brightcove.
brightcove_init in ./brightcove.module
Implements hook_init().

... See full list

File

./brightcove.module, line 2163
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_load_lib($fail_silently = FALSE) {
  $loaded =& drupal_static(__FUNCTION__);
  if ($loaded) {
    return;
  }
  if ($fail_silently === TRUE && !function_exists('libraries_load')) {
    return;
  }
  libraries_load('PHP-API-Wrapper');
  $loaded = TRUE;
}