You are here

function brightcove_get_callback_metadata in Brightcove Video Connect 7.6

Same name and namespace in other branches
  1. 7.7 brightcove.module \brightcove_get_callback_metadata()
1 call to brightcove_get_callback_metadata()
brightcove_metadata in ./brightcove.module

File

./brightcove.module, line 2733
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_callback_metadata($hash) {
  $raw = db_query('SELECT metadata FROM {brightcove_callback} WHERE hash = :hash', [
    ':hash' => $hash,
  ])
    ->fetchField();
  return $raw ? json_decode($raw, TRUE) : [];
}