function oembed_filter_info in oEmbed 7
Same name and namespace in other branches
- 8 oembed.filter.inc \oembed_filter_info()
- 7.0 oembed.filter.inc \oembed_filter_info()
Implements hook_filter_info().
File
- ./
oembed.filter.inc, line 28 - Input filter that enhances oEmbed enabled URLs with extra content
Code
function oembed_filter_info() {
$filters = array();
$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' => '',
'autoembed' => OEMBED_AUTOEMBED,
),
);
$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;
}