function _oembedprovider_result in oEmbed 7.0
Same name and namespace in other branches
- 8 modules/oembedprovider/oembedprovider.module \_oembedprovider_result()
- 6.0 oembedprovider.inc \_oembedprovider_result()
- 7 modules/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 oembedprovider/
oembedprovider.inc - oEmbed response delivery callback.
- oembedprovider_file_provider in oembedprovider/
plugins/ providers/ file.inc - The default provider to handle files
- oembedprovider_node_provider in oembedprovider/
plugins/ providers/ node.inc - The default provider to handle nodes
- _oembedprovider_handle_request in oembedprovider/
oembedprovider.inc - Callback handler for oembed requests.
File
- 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;
}