function oembedfield_theme in oEmbed 6.0
Implementation of hook_theme().
File
- ./
oembedfield.module, line 35 - OEmbed field core hooks and functions
Code
function oembedfield_theme() {
$base = array(
'template' => 'oembedfield-formatter-oembed-default',
'file' => 'oembedfield_theme.inc',
'path' => drupal_get_path('module', 'oembedfield') . '/theme',
'arguments' => array(
'element' => NULL,
),
);
$theme = array(
'oembedfield_formatter_oembed_default' => $base,
);
foreach (oembedcore_preset_load_all() as $preset) {
if (empty($preset->disabled)) {
$hook = 'oembedfield_formatter_oembed_' . $preset->name . '_default';
$theme[$hook] = $base;
$theme[$hook]['original hook'] = 'oembedfield_formatter_oembed_default';
}
}
return $theme;
}