function oembed_default_provider_scheme in oEmbed 8
Same name and namespace in other branches
- 7 plugins/providers/default.inc \oembed_default_provider_scheme()
- 7.0 plugins/providers/default.inc \oembed_default_provider_scheme()
1 string reference to 'oembed_default_provider_scheme'
- default.inc in plugins/
providers/ default.inc
File
- plugins/
providers/ default.inc, line 40
Code
function oembed_default_provider_scheme() {
// oEmbed provider definitions are remote web services.
ctools_include('export');
$providers = ctools_export_load_object('oembed_provider');
$schemes = array();
foreach ($providers as $provider) {
if (empty($provider->disabled) && !empty($provider->scheme)) {
$schemes['default:' . $provider->name] = $provider->scheme;
}
}
return $schemes;
}