function oembedembedly_default_selected in oEmbed 7.0
Same name and namespace in other branches
- 8 modules/oembedembedly/oembedembedly.module \oembedembedly_default_selected()
- 7 modules/oembedembedly/oembedembedly.module \oembedembedly_default_selected()
Helper function to populate defaults for all providers.
2 calls to oembedembedly_default_selected()
- oembedembedly_admin in oembedembedly/
oembedembedly.admin.inc - Admin form to configure embedly provider.
- oembedembedly_embedly_provider_scheme in oembedembedly/
plugins/ providers/ embedly.inc
File
- 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()));
}