You are here

function theme_swftools_empty_image in SWF Tools 6.3

Returns a path to a default image.

This is generally called by playlist functions that are rendering images as part of the playlist. In some instances it is necessary to use a placeholder image when none is given in order for the playlist to render correctly.

By over-riding this theme function alternate images can be used. The data array is provided so if this theme function is over-ridden custom alternatives can be used depending on the context. By default SWF Tools returns a single pixel gif.

Parameters

array $data: The SWF Tools data array.

Return value

string Path to the default image.

Related topics

3 theme calls to theme_swftools_empty_image()
swftools_flowplayer3_swftools_playlist_flowplayer3 in flowplayer3/swftools_flowplayer3.module
Implementation of hook_swftools_playlist_PLAYER().
swftools_jw5_swftools_playlist_jwplayer5 in jw5/swftools_jw5.module
Implementation of hook_swftools_playlist_[player]().
swftools_wijering4_swftools_playlist_jwplayer4 in wijering4/swftools_wijering4.module
Implementation of hook_swftools_playlist_[player]().

File

includes/swftools.theme.inc, line 426
Implements SWF Tools theme functions.

Code

function theme_swftools_empty_image($data) {
  return base_path() . drupal_get_path('module', 'swftools') . '/includes/empty.gif';
}