You are here

function media_internet_test_media_parse in D7 Media 7.4

Same name and namespace in other branches
  1. 7.2 modules/media_internet/tests/media_internet_test.module \media_internet_test_media_parse()
  2. 7.3 modules/media_internet/tests/media_internet_test.module \media_internet_test_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

modules/media_internet/tests/media_internet_test.module, line 57
Provides Media Internet module hook implementations for testing purposes.

Code

function media_internet_test_media_parse($embed_code) {
  $handler = new MediaInternetTestHandler($embed_code);
  return $handler
    ->parse($embed_code);
}