Hacking around Embedded Video's preset limitations

Monday, December 17, 2012


The Problem

At least in Drupal 6, Embedded Media Field only accommodates two size presets for embedded videos (full-size and preview). Sites are sometimes designed as though embedded videos can be presented in an unlimited number of different sizes, like images being output by ImageCache -- but of course ImageCache is only for images.

A Solution

If you have a reasonable place to put custom PHP (a theme function or template, or a Views Custom Field), you can use this snippet, after setting $node, $field_name, $width, and $height:

$item = $node->{$field_name}[0];
if ($item) {
  $item['#delta'] = 0;
  $field = content_fields($field_name, $node->type);
  $formatter = '';
  $options = array('width' => $width, 'height' => $height);
  print theme_emvideo_video_video($field, $item, $formatter, $node, $options);


%s1 / %s2



We are the only seller out there
Leather Icon Store

we are great here, but things will change soon star wars finn jacket

Are you still tragetting any body?
Amazon what now jacket

This is the new things and one things is not enough.

This is a great song, very simple, and a great way to
get people singing along. I can still sing the entire "Green Acres" song, Hungarian inflection and all.
So, the question is, how do you find out what vocal range a song was made for.

Thіѕ article presents clear idea in support of the new visitοrs of blоgging, that in fact how tо do
running a blog.

January 22nd - 10 Michael Kors coupons. Get a Michael Kors discount
code, coupons and sales on bags, shoes, more!
Save up to 75% off with Michael Kors coupon codes.
more from:michael kors coupons

Hi, off course this article is genuinely pleasant and I have learned
lot of things from it on the topic of blogging. thanks.

Also viait my web site m88

It's a set of energy bodies around your physical body.
Wheen the option 'I know enough' appears, choose it.
And the money graph has now gone exponentially straight up.

Also visit myy site :: Secret Money vault

Excellent pieces. Keep writing such kind of info on your site.
Im really impressed by it.
Hi there, You've done an excellent job. I will certainly digg it and individually
recommend to my friends. I am sure they will be benefited
from this site.

Click here to leave a comment the old-fashioned way, without using Facebook