You are here

function _oembedprovider_result in oEmbed 8

Same name and namespace in other branches
  1. 6.0 oembedprovider.inc \_oembedprovider_result()
  2. 7 modules/oembedprovider/oembedprovider.module \_oembedprovider_result()
  3. 7.0 oembedprovider/oembedprovider.module \_oembedprovider_result()

Merges a result with some standard values.

Parameters

string $type:

array $result:

4 calls to _oembedprovider_result()
oembedprovider_deliver_response in modules/oembedprovider/oembedprovider.inc
oEmbed response delivery callback.
oembedprovider_file_provider in modules/oembedprovider/plugins/providers/file.inc
The default provider to handle files
oembedprovider_node_provider in modules/oembedprovider/plugins/providers/node.inc
The default provider to handle nodes
_oembedprovider_handle_request in modules/oembedprovider/oembedprovider.inc
Callback handler for oembed requests.

File

modules/oembedprovider/oembedprovider.module, line 73
Module for providing content as defined in the oEmbed specification

Code

function _oembedprovider_result($type, $props) {
  $defaults = array(
    'type' => $type,
    'version' => '1.0',
    'provider_name' => variable_get('site_name', ''),
    'width' => 0,
    'height' => 0,
  );
  $result = array_merge($defaults, $props);
  return $result;
}