function video_filter_get_classes

cis7 video_filter.module video_filter_get_classes($video)
cle7 video_filter.module video_filter_get_classes($video)
elmsmedia7 video_filter.module video_filter_get_classes($video)
icor7 video_filter.module video_filter_get_classes($video)
meedjum_blog7 video_filter.module video_filter_get_classes($video)
mooc7 video_filter.module video_filter_get_classes($video)

Helper function that extracts some classes from $video.

2 calls to video_filter_get_classes()
theme_video_filter_flash in sites/all/modules/ulmus/video_filter/video_filter.module
Function that outputs the <object> element.
theme_video_filter_iframe in sites/all/modules/ulmus/video_filter/video_filter.module
Function that outputs HTML5 compatible iFrame for codecs that support it.

File

sites/all/modules/ulmus/video_filter/video_filter.module, line 344
Video filter is a highly flexible and easy extendable filter module to embed any type of video in your site using a simple tag.

Code

function video_filter_get_classes($video) {
  $classes = array(
    'video-filter',
    
    // Add codec name.
    'video-' . $video['codec']['codec_name'],
  );

  // Add alignment.
  if (isset($video['align'])) {
    $classes[] = 'video-' . $video['align'];
  }

  // First match is the URL, we don't want that as a class.
  unset($video['codec']['matches'][0]);
  foreach ($video['codec']['matches'] as $match) {
    $classes[] = 'vf-' . strtolower(preg_replace('/[^a-zA-Z0-9]/', '', $match));
  }

  return $classes;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.