diff options
author | Heshan Wanigasooriya <heshanmw@gmail.com> | 2011-02-01 06:43:29 +0000 |
---|---|---|
committer | Heshan Wanigasooriya <heshanmw@gmail.com> | 2011-02-01 06:43:29 +0000 |
commit | 0e7283722f6ed7b6a8ace7c4683c7c260ff7a7e4 (patch) | |
tree | 3af4550f8b1713bf98e12f0afba20bc55e5cea10 | |
parent | ef767db4fdce471f41b9f16ab57df32ec1bf5527 (diff) | |
download | video-0e7283722f6ed7b6a8ace7c4683c7c260ff7a7e4.tar.gz video-0e7283722f6ed7b6a8ace7c4683c7c260ff7a7e4.tar.bz2 |
Updating the video formater added common callback for the video_get_plyer
-rw-r--r-- | video_formatter.inc | 17 |
1 files changed, 17 insertions, 0 deletions
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 |