You are here

function oembed_default_provider_scheme in oEmbed 7

Same name and namespace in other branches
  1. 8 plugins/providers/default.inc \oembed_default_provider_scheme()
  2. 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;
}