You are here

function oembed_file_validator_type in oEmbed 8

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

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

Parameters

\stdClass $file: A Drupal file object.

Return value

array If the oEmbed response is invalid, the array will contain at least one error message.

File

./oembed.module, line 441
Core functionality for oEmbed

Code

function oembed_file_validator_type(stdClass $file) {
  return oembed_validate_response($file->metadata['oembed']);
}