You are here

function oembedembedly_default_selected in oEmbed 8

Same name and namespace in other branches
  1. 7 modules/oembedembedly/oembedembedly.module \oembedembedly_default_selected()
  2. 7.0 oembedembedly/oembedembedly.module \oembedembedly_default_selected()

Helper function to populate defaults for all providers.

2 calls to oembedembedly_default_selected()
oembedembedly_admin in modules/oembedembedly/oembedembedly.admin.inc
Admin form to configure embedly provider.
oembedembedly_embedly_provider_scheme in modules/oembedembedly/plugins/providers/embedly.inc

File

modules/oembedembedly/oembedembedly.module, line 63
Embed.ly support for oEmbed.module

Code

function oembedembedly_default_selected() {
  $providers = oembedembedly_providers();
  $default = variable_get('oembedembedly_default', TRUE);
  $defaults = array_combine(array_keys($providers), array_fill(0, count($providers), $default));
  return array_merge($defaults, variable_get('oembedembedly_providers', array()));
}