function oembed_filter_info in oEmbed 7.0
Same name and namespace in other branches
- 8 oembed.filter.inc \oembed_filter_info()
- 7 oembed.filter.inc \oembed_filter_info()
Implements hook_filter_info().
File
- ./
oembed.filter.inc, line 15 - Input filter that enhances oEmbed enabled URLs with extra content
Code
function oembed_filter_info() {
$filters['oembed'] = array(
'title' => t('oEmbed filter'),
'description' => t('Embeds content for oEmbed-enabled web addresses and turns the rest, and e-mail addresses, into clickable links.'),
'prepare callback' => 'oembed_filter_oembed_prepare',
'process callback' => 'oembed_filter_oembed_process',
'settings callback' => 'oembed_filter_oembed_settings',
'tips callback' => 'oembed_filter_oembed_tips',
'default settings' => array(
'options' => '',
'view_mode' => 'full',
'autoembed' => TRUE,
),
'cache' => FALSE,
);
$filters['oembed_legacy'] = array(
'title' => t('oEmbed legacy filter'),
'description' => t('Embeds content for oEmbed-enabled web addresses and turns the rest, and e-mail addresses, into clickable links.'),
'process callback' => 'oembed_filter_oembed_legacy_process',
'settings callback' => 'oembed_filter_oembed_legacy_settings',
'default settings' => array(
'maxwidth' => '',
'maxheight' => '',
),
);
return $filters;
}