The idea is that you're on youtube, possibly another supported site, and you click a bookmark on your toolbar, which takes you to your drupal site's add embedded field and automatically adds the youtube url or embedded code to the appropriate field.

Basically similar to facebook's "share on facebook" bookmarklet

Maybe using some javascript and hook_form_alter.

Comments

wolfderby’s picture

This should do the trick, can anyone tell me how to print this as a link on a drupal site?

If this is the destination and/or location of a link on a bookmark in the toolbar it should work if you change example to your site

javascript:u=document.location.href; void(window.open("http://www.example.com/node/add/embedded-video?edit[field_embedded_video]="+escape(u),'width=710,height=500,status=yes,resizable=yes,scrollbars=yes'));"
aaron’s picture

Priority: Normal » Minor
Status: Active » Closed (won't fix)

you'd want to use drupal_to_js() to add javascript to a site. i think this is too specialized as worded for a generic solution. maybe someone could add a tips page about how to implement it on their own site.

thanks,
aaron

aaron’s picture

Component: Miscellaneous » Documentation
Status: Closed (won't fix) » Active