You are here

function brightcove_generate_reference in Brightcove Video Connect 7.5

Same name and namespace in other branches
  1. 6.2 brightcove.module \brightcove_generate_reference()
  2. 6 brightcove.module \brightcove_generate_reference()
  3. 7.7 brightcove.module \brightcove_generate_reference()
  4. 7.2 brightcove.module \brightcove_generate_reference()
  5. 7.3 brightcove.module \brightcove_generate_reference()
  6. 7.4 brightcove.module \brightcove_generate_reference()
  7. 7.6 brightcove.module \brightcove_generate_reference()

Generate a reference ID based on Drupal version and User ID.

Parameters

$account: Account UID that is responsible for this video. If NULL, logged in user is used.

1 call to brightcove_generate_reference()
_brightcove_upload_form_callback in ./brightcove.module
Upload the submitted video.

File

./brightcove.module, line 712
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_generate_reference($account = NULL) {
  global $user;
  if (!isset($account)) {
    $account = $user->uid;
  }
  return "drupal:" . DRUPAL_CORE_COMPATIBILITY . ":" . $account . ":" . md5(microtime());
}