You are here

function slick_is_media in Slick Carousel 7.2

Checks for the supported media sub-modules.

2 calls to slick_is_media()
slick_extract_media_data in includes/slick.extras.inc
Gets a media URL from the rendered iframe already containing all the params.
slick_get_media_thumbnail in includes/slick.extras.inc
Format image/media file data, called by Media file and Field collection.

File

includes/slick.extras.inc, line 11
Contains optional functions called by frontend Media, or Field collection.

Code

function slick_is_media($scheme) {
  $schemes = array(
    'soundcloud',
    'vimeo',
    'youtube',
  );
  if (in_array($scheme, variable_get('slick_schemes', $schemes))) {
    return TRUE;
  }
  return FALSE;
}