You are here

function _brightcove_cache_fix_file_path in Brightcove Video Connect 7.6

Same name and namespace in other branches
  1. 7.7 brightcove.module \_brightcove_cache_fix_file_path()
  2. 7.3 brightcove.module \_brightcove_cache_fix_file_path()
  3. 7.4 brightcove.module \_brightcove_cache_fix_file_path()
  4. 7.5 brightcove.module \_brightcove_cache_fix_file_path()

Helper function to be able to add the closing "/" character, if it doesn't exist.

Parameters

$location:

Return value

string

1 call to _brightcove_cache_fix_file_path()
_brightcove_delete_cache_files in ./brightcove.module
Helper function to be able to delete unnecessary cache files.

File

./brightcove.module, line 3301
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_cache_fix_file_path($location) {
  return substr($location, -1) === '/' ? $location : $location . '/';
}