Skip to content

Instantly share code, notes, and snippets.

@and1truong
Created November 29, 2012 07:34
Show Gist options
  • Select an option

  • Save and1truong/4167397 to your computer and use it in GitHub Desktop.

Select an option

Save and1truong/4167397 to your computer and use it in GitHub Desktop.
Get file object from embed code #drupal #media
<?php
$embed_string = '[ted id=1204]';
$provider = media_internet_get_provider($embed_string);
$file = $provider->save();
dsm($file);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment