From 0e7283722f6ed7b6a8ace7c4683c7c260ff7a7e4 Mon Sep 17 00:00:00 2001 From: Heshan Wanigasooriya Date: Tue, 1 Feb 2011 06:43:29 +0000 Subject: Updating the video formater added common callback for the video_get_plyer --- video_formatter.inc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/video_formatter.inc b/video_formatter.inc index 71aca50..bcda04f 100644 --- a/video_formatter.inc +++ b/video_formatter.inc @@ -194,4 +194,21 @@ function theme_video_formatter_imagecache($element) { } //return $theme_function; return theme('video_formatter_' . $theme_function, $element, TRUE); +} + +/** + * Returns HTML for an image field formatter. + * + * @param $variables + * An associative array containing: + * - item: An array of image data. + * - video_style: An optional vieo thumb style. + * - path: An array containing the link 'path' and link 'options'. + * - field : field settings + * - instance : field instance settings + * + * @ingroup themeable + */ +function theme_video_formatter($variables) { + return video_get_player($variables); } \ No newline at end of file -- cgit v1.2.3