You are here

function _brightcove_media_session_value_get in Brightcove Video Connect 7.6

Same name and namespace in other branches
  1. 7.7 brightcove_media/brightcove_media.module \_brightcove_media_session_value_get()

Helper function to retrieve a value from the session.

TODO: This function should be removed and replaced with another storage method that does not rely on the session. This is only a shim at this point to support existing code.

Parameters

string $name: The name of the value to retrieve from the session.

Return value

mixed The value stored in the session, or NULL if not found.

1 call to _brightcove_media_session_value_get()
brightcove_media_file_uri_to_object in brightcove_media/brightcove_media.module
Helper function MediaInternetBrightcoveHandler class getFileObject method.

File

brightcove_media/brightcove_media.module, line 805
This module provide the hook implementations for the integration with Media module.

Code

function _brightcove_media_session_value_get($name) {
  $name = _brightcove_media_session_value_name_personalize($name);
  return isset($_SESSION['brightcove_media'][$name]) ? $_SESSION['brightcove_media'][$name] : NULL;
}