function brightcove_generate_reference in Brightcove Video Connect 6
Same name and namespace in other branches
- 6.2 brightcove.module \brightcove_generate_reference()
- 7.7 brightcove.module \brightcove_generate_reference()
- 7.2 brightcove.module \brightcove_generate_reference()
- 7.3 brightcove.module \brightcove_generate_reference()
- 7.4 brightcove.module \brightcove_generate_reference()
- 7.5 brightcove.module \brightcove_generate_reference()
- 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.
2 calls to brightcove_generate_reference()
- brightcove_cck_upload_form_submit in brightcove_cck/
brightcove_cck.module - Submit callback for brightcove_cck_upload_form.
- brightcove_mm_upload_video in ./
brightcove.media_mover.inc - Upload a video to Brightcove through Media Mover.
File
- ./
brightcove.module, line 393 - 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());
}