You are here

function _brightcove_get_ingest_callback in Brightcove Video Connect 7.6

Same name and namespace in other branches
  1. 7.7 brightcove.module \_brightcove_get_ingest_callback()
2 calls to _brightcove_get_ingest_callback()
brightcove_admin_settings in ./brightcove.admin.inc
Form builder.
brightcove_create_callback in ./brightcove.module

File

./brightcove.module, line 2644
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_get_ingest_callback($hash, $force = FALSE) {
  if (!variable_get('brightcove_track_ingestion') && !$force) {
    return FALSE;
  }
  if (variable_get('brightcove_auto_callback', TRUE)) {
    return url("brightcove/callback/{$hash}", [
      'absolute' => TRUE,
    ]);
  }
  return rtrim(variable_get('brightcove_callback'), '/') . "/{$hash}";
}