You are here

public function MediaInternetTestHandler::claim in D7 Media 7.4

Same name and namespace in other branches
  1. 7.2 modules/media_internet/tests/includes/MediaInternetTestHandler.inc \MediaInternetTestHandler::claim()
  2. 7.3 modules/media_internet/tests/includes/MediaInternetTestHandler.inc \MediaInternetTestHandler::claim()

Determines if this handler should claim the item.

Parameters

string $embed_code: A string of user-submitted embed code.

Return value

boolean Pass TRUE to claim the item.

Overrides MediaInternetBaseHandler::claim

File

modules/media_internet/tests/includes/MediaInternetTestHandler.inc, line 28
Extends the MediaInternetBaseHandler class to handle videos from an imaginary example.com.

Class

MediaInternetTestHandler
Implementation of MediaInternetBaseHandler.

Code

public function claim($embedCode) {
  if ($this
    ->parse($embedCode)) {
    return TRUE;
  }
}