function _oembedprovider_result in oEmbed 6.0
Same name and namespace in other branches
- 8 modules/oembedprovider/oembedprovider.module \_oembedprovider_result()
- 7 modules/oembedprovider/oembedprovider.module \_oembedprovider_result()
- 7.0 oembedprovider/oembedprovider.module \_oembedprovider_result()
Merges a result with some standard values.
Parameters
string $type:
array $result:
2 calls to _oembedprovider_result()
- _oembedprovider_handle_request in ./
oembedprovider.inc - Callback handler for oembed requests.
- _oembedprovider_node_provider in ./
oembedprovider.inc - The default provider to handle nodes
File
- ./
oembedprovider.inc, line 82 - Functions for the oEmbed provider
Code
function _oembedprovider_result($type, $props) {
return array_merge(array(
'type' => $type,
'version' => '1.0',
'provider_name' => variable_get('site_name', ''),
'width' => 0,
'height' => 0,
), $props);
}