You are here

file_shadowbox.module in Shadowbox 8

Same filename and directory in other branches
  1. 7.4 file_shadowbox/file_shadowbox.module

File Shadowbox, a JavaScript media viewer application for displaying content in a modal dialogue for file field.

File

file_shadowbox/file_shadowbox.module
View source
<?php

/**
 * @file
 * File Shadowbox, a JavaScript media viewer application for displaying content in a
 * modal dialogue for file field.
 */
define('FILE_SHADOWBOX_ICOPATH', drupal_get_path('module', 'file_shadowbox') . "/images/icos/");

/**
 * Get vimeo thumbnail.
 */
function _get_vimeo_thumbnail($id) {
  $hash = unserialize(file_get_contents("http://vimeo.com/api/v2/video/{$id}.php"));
  return $hash[0]['thumbnail_medium'];
}

Functions

Namesort descending Description
_get_vimeo_thumbnail Get vimeo thumbnail.

Constants

Namesort descending Description
FILE_SHADOWBOX_ICOPATH @file File Shadowbox, a JavaScript media viewer application for displaying content in a modal dialogue for file field.