You are here

function media_soundcloud_media_parse in Media: SoundCloud 7

Same name and namespace in other branches
  1. 7.2 media_soundcloud.module \media_soundcloud_media_parse()

Implements hook_media_parse().

@todo This hook should be deprecated. Refactor Media module to not call it any more, since media_internet should be able to automatically route to the appropriate handler.

File

./media_soundcloud.module, line 97
media_soundcloud/media_soundcloud.module

Code

function media_soundcloud_media_parse($embed_code) {
  $handler = new MediaInternetSoundCloudHandler($embed_code);
  return $handler
    ->parse($embed_code);
}