You are here

function oembed_file_validator_type in oEmbed 7.0

Same name and namespace in other branches
  1. 8 oembed.module \oembed_file_validator_type()
  2. 7 oembed.module \oembed_file_validator_type()

Checks that the oEmbed response has required standard properties for its type.

Parameters

$file: A Drupal file object.

$embed: An oEmbed response.

Return value

An array. If the oEmbed response is invalid, it will contain an error message.

File

./oembed.module, line 798

Code

function oembed_file_validator_type(stdClass $file) {
  return oembed_validate_response($file->oembed);
}