function oembedfield_field_formatter_info in oEmbed 6.0
Implementation of hook_field_formatter_info().
File
- ./
oembedfield.module, line 11 - OEmbed field core hooks and functions
Code
function oembedfield_field_formatter_info() {
$formatters = array(
'oembed_default' => array(
'label' => t('OEmbed'),
'field types' => array(
'link',
),
'description' => t('Embeds links if possible - otherwise just links them.'),
),
);
foreach (oembedcore_preset_load_all() as $preset) {
if (empty($preset->disabled)) {
$formatters['oembed_' . $preset->name . '_default'] = array(
'label' => t('OEmbed, preset @preset', array(
'@preset' => $preset->name,
)),
'field types' => array(
'link',
),
);
}
}
return $formatters;
}