You are here

function _kaltura_thumbnail_base_url in Kaltura 7.2

Same name and namespace in other branches
  1. 7.3 kaltura.module \_kaltura_thumbnail_base_url()

Returns a URL prefix for thumbnails.

Return value

string URL prefix.

3 calls to _kaltura_thumbnail_base_url()
field_kaltura_add_modal_js in plugins/field_kaltura/field_kaltura.module
Adds js function to handel the callback from the flush uploader.
kaltura_get_field_thumbs in plugins/field_kaltura/field_kaltura.module
Helper function to constrat the entry thumbnail with the remove button.
theme_kaltura_contribution_wizard_field in includes/kaltura.themeing.inc

File

./kaltura.module, line 72
Kaltura integration module - core functions.

Code

function _kaltura_thumbnail_base_url() {
  if (variable_get('kaltura_partner_id', '') != '') {
    $server_url = variable_get('kaltura_server_url', '') != '' ? variable_get('kaltura_server_url', '') : KALTURASETTINGS_SERVER_URL;
    return $server_url . '/p/' . variable_get('kaltura_partner_id', '') . '/sp/' . variable_get('kaltura_subp_id', '') . '/thumbnail';
  }
}