You are here

function oembedembedly_embedly_provider_scheme in oEmbed 7

Same name and namespace in other branches
  1. 8 modules/oembedembedly/plugins/providers/embedly.inc \oembedembedly_embedly_provider_scheme()
  2. 7.0 oembedembedly/plugins/providers/embedly.inc \oembedembedly_embedly_provider_scheme()
1 string reference to 'oembedembedly_embedly_provider_scheme'
embedly.inc in modules/oembedembedly/plugins/providers/embedly.inc

File

modules/oembedembedly/plugins/providers/embedly.inc, line 12

Code

function oembedembedly_embedly_provider_scheme() {
  $json = oembedembedly_providers();
  $schemes = array();
  if (is_array($json)) {
    $selections = oembedembedly_default_selected();
    foreach ($json as $provider_name => $info) {
      if ($selections[$provider_name]) {
        $schemes['embedly:' . $provider_name] = $info->regex;
      }
    }
  }
  return $schemes;
}